wesmiler 2 月之前
父节点
当前提交
4fa194ba6b
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/Services/Common/GoodsService.php

+ 4 - 0
app/Services/Common/GoodsService.php

@@ -281,6 +281,10 @@ class GoodsService extends BaseService
             $data['thumb'] = get_image_path($data['thumb']);
         }
 
+        if (isset($data['albums']) && $data['albums']) {
+            $data['albums'] = implode(',', $data['albums']);
+        }
+
         // 验证商品名称
         if (empty($data['goods_name'])) {
             return message('请填写商品名称', false);