xielin 6 anni fa
parent
commit
ac79133aca
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/Repositories/CmsContentTemplateSetRepository.php

+ 1 - 1
app/Repositories/CmsContentTemplateSetRepository.php

@@ -193,7 +193,7 @@ class CmsContentTemplateSetRepository {
         $banner_rule = $this->cmsContentTemplateSet->select('id','rule')->where(['tpl_id'=>$request['tpl_id'],'area_type'=>0])->get();
         $new_rule = [];
         foreach ($banner_rule->toArray() as $k=>$v){
-            $new_rule[] = json_decode($v['rule'],true);
+            array_push($new_rule,json_decode($v['rule'],true));
         }
         $group_array['content'][0]['rule'] = $new_rule;