wangjun hai 4 días
pai
achega
37bd440fa4
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      application/index/model/questionbankmodel.php

+ 5 - 0
application/index/model/questionbankmodel.php

@@ -14,4 +14,9 @@ class questionbankmodel extends Model {
         $list = $this->where([])->order("sort asc")->select();
         return $list;
     }
+    public function getinfobyid($id) {
+        $where_arr['id'] = $id;
+        $rec = $this->where($where_arr)->find();
+        return $rec;
+    }
 }