Sfoglia il codice sorgente

西安版块操作限制打开

duqinya 6 anni fa
parent
commit
d76e4515bd
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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'],