wangjun 4 days ago
parent
commit
37bd440fa4
1 changed files with 5 additions and 0 deletions
  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;
+    }
 }