ソースを参照

西安版块操作限制打开

duqinya 6 年 前
コミット
d76e4515bd
共有1 個のファイルを変更した3 個の追加0 個の削除を含む
  1. 3 0
      app/Repositories/CmsContentTemplateRepository.php

+ 3 - 0
app/Repositories/CmsContentTemplateRepository.php

@@ -66,6 +66,9 @@ class CmsContentTemplateRepository {
      */
     public function edit($request)
     {
+        if ($request['city_id'] == 610100 && $request['is_open'] == 0){
+            throw new HttpException(500, '西安的模板不允许手动关闭');
+        }
         if ($request['is_open']==0){
             $where = [
                 'apply_type'=>$request['apply_type'],