Browse Source

修改广告位信息同步模板数据的接口;(由于网系之前自助建站都是专题网系--2,目前全部是除了核心站--3之外全部是自助建站逻辑)

FengR 1 year ago
parent
commit
e69234a2e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/JsonRpc/AdService.php

+ 1 - 1
app/JsonRpc/AdService.php

@@ -207,7 +207,7 @@ class AdService implements AdServiceInterface
         Db::beginTransaction();
         try{
             // 判断网站的广告位是否通过自助建站创建的广告位(通过网系包含2来判断)
-            if(in_array(2,$website_column_arr_id)){
+            if(!in_array(3,$website_column_arr_id)){
                 $template_data = ['ad_tag'=>$web['ad_tag']];
                 $template_data = array_merge($data,$template_data);
                 $template_module = WebsiteTemplate::where('website_id',$template_data['website_id'])->first();