Prechádzať zdrojové kódy

西安版块操作限制打开

duqinya 6 rokov pred
rodič
commit
d76e4515bd

+ 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'],