Browse Source

完善功能

gorden 10 months ago
parent
commit
ed3f194d82
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/service/goods/GoodsService.php

+ 1 - 1
app/admin/service/goods/GoodsService.php

@@ -757,7 +757,7 @@ class GoodsService
             if ($type == 'update') {
                 GoodsComponent::where('join_component_master_goods_id', $params['goods_id'])->delete();
             }else{
-                Goods::where('goods_id',$params['goods_id'])->update(['goods_sku_json'=>'{"规格":"标准"}']);
+                Goods::where('goods_id',$params['goods_id'])->update(['goods_sku_json'=>'{"规格": ["标准"]}']);
             }
             $data = [];
             foreach ($params['goods_content_list'] as $item) {