wangjun 4 일 전
부모
커밋
37bd440fa4
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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;
+    }
 }