Quellcode durchsuchen

关掉状态开关

duqinya vor 6 Jahren
Ursprung
Commit
5ca41a9e90

+ 1 - 1
app/Repositories/CmsContentTemplateRepository.php

@@ -57,7 +57,7 @@ class CmsContentTemplateRepository {
             'city_name' => $request['city_name'],
             'apply_type' => $request['apply_type'],
             'is_open' => $request['is_open'] ?? 0,
-            'status' => 0
+            'status' => 1
         ];
 
         if (!$this->cmsContentTemplate->create($subject)) {

+ 1 - 1
app/Repositories/CmsContentTemplateSetRepository.php

@@ -233,7 +233,7 @@ class CmsContentTemplateSetRepository {
             }
         }
 
-        $update_tpl = $this->cmsContentTemplate->where('id', $request['tpl_id'])->update(['status' => 1,'is_open'=>1]);
+        $update_tpl = $this->cmsContentTemplate->where('id', $request['tpl_id'])->update(['status' => 1]);
         if (!$update_tpl) {
             throw new HttpException(500, '修改失败,请重试');
         }