Browse Source

修改接口:修改组件;

15313670163 3 days ago
parent
commit
70390015fe
1 changed files with 20 additions and 0 deletions
  1. 20 0
      app/JsonRpc/PublicRpcService.php

+ 20 - 0
app/JsonRpc/PublicRpcService.php

@@ -1653,6 +1653,26 @@ class PublicRpcService implements PublicRpcServiceInterface
             default:
                 break;
         }
+        $cll_column = [
+            'img_num' => null,
+            'text_num' => null,
+            'child_imgnum' => null,
+            'child_textnum' => null,
+            'category_id' => null,
+            'child_id' => null,
+            'num' => null,
+            'level' => null,
+            'fcatid' => null,
+            'article_id' => null,
+            'cate_place' => null,
+            'pageSize' => null,
+            'ad_img' => null,
+            'ad_width' => null,
+            'ad_height' => null,
+            'ad' => '',
+            'ad_type' => null,
+        ];
+        $add_arr = array_merge($cll_column,$add_arr);
         $result =  Component::where('id',$id)->update($add_arr);
         if(empty($result)){ 
             Db::rollBack();