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