瀏覽代碼

修改提示语

duqinya 6 年之前
父節點
當前提交
753dca050a

+ 1 - 1
app/Repositories/CmsContentTemplateRepository.php

@@ -75,7 +75,7 @@ class CmsContentTemplateRepository {
             throw new HttpException(500, '城市为西安的模板不允许手动关闭');
         }
         if ($request['is_open'] == 1 && $template_id->status == 0){
-            throw new HttpException(500, '请先配置模板并发布之后再开启');
+            throw new HttpException(500, '请先配置内容并发布之后再开启');
         }
 
         $template_id->is_open = $request['is_open'];

+ 1 - 1
app/Repositories/CmsContentTemplateSetRepository.php

@@ -349,7 +349,7 @@ class CmsContentTemplateSetRepository {
 
     public function getTemplate($cityId)
     {
-        return $this->cmsContentTemplate->select('id','title','apply_type')->where(['city_id'=>$cityId,'is_open'=>1,'status'=>1])->orderBy('apply_type','asc')->get();
+        return $this->cmsContentTemplate->select('id','title','apply_type')->where(['city_id'=>$cityId])->orderBy('apply_type','asc')->get();
 
     }