WIN-2308041133\Administrator 4 weeks ago
parent
commit
8ae7c127bd
1 changed files with 6 additions and 3 deletions
  1. 6 3
      app/api/controller/Education.php

+ 6 - 3
app/api/controller/Education.php

@@ -232,10 +232,13 @@ class Education
         if($totalCount>0){
             $data = (new ContractTemplateModel)
                 ->where($where)
-                ->order("id", "desc")
-                ->page($post["page"], $post["pageSize"])
-                ->select();
+//                ->order("id", "desc")
+//                ->page($post["page"], $post["pageSize"])
+                ->find();
 //            $data['id'] = $oData['id'];
+            if (empty($data)){
+                return app('json')->fail("模版号不存在");
+            }
             $data['imgs'] = getImageAr($data["imgs"]);
 
             $data['content'] = json_decode($data['content']);