正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -294,6 +294,8 @@ class ProductLogic extends BaseLogic | @@ -294,6 +294,8 @@ class ProductLogic extends BaseLogic | ||
| 294 | $param['video']['url'] = str_replace_url($param['video']['url']); | 294 | $param['video']['url'] = str_replace_url($param['video']['url']); |
| 295 | $param['video']['video_image'] = str_replace_url($param['video']['video_image']); | 295 | $param['video']['video_image'] = str_replace_url($param['video']['video_image']); |
| 296 | $param['video'] = Arr::a2s($param['video'] ?? []); | 296 | $param['video'] = Arr::a2s($param['video'] ?? []); |
| 297 | + }else{ | ||
| 298 | + $param['video'] = Arr::a2s([]); | ||
| 297 | } | 299 | } |
| 298 | if(isset($param['keyword_id']) && !empty($param['keyword_id'])){ | 300 | if(isset($param['keyword_id']) && !empty($param['keyword_id'])){ |
| 299 | $param['keyword_id'] = ','.Arr::arrToSet($param['keyword_id']).','; | 301 | $param['keyword_id'] = ','.Arr::arrToSet($param['keyword_id']).','; |
| @@ -309,6 +311,8 @@ class ProductLogic extends BaseLogic | @@ -309,6 +311,8 @@ class ProductLogic extends BaseLogic | ||
| 309 | $param['icon'][$k1] = str_replace_url($v1); | 311 | $param['icon'][$k1] = str_replace_url($v1); |
| 310 | } | 312 | } |
| 311 | $param['icon'] = Arr::a2s($param['icon'] ?? []); | 313 | $param['icon'] = Arr::a2s($param['icon'] ?? []); |
| 314 | + }else{ | ||
| 315 | + $param['icon'] = Arr::a2s([]); | ||
| 312 | } | 316 | } |
| 313 | $param['created_uid'] = $this->user['id']; | 317 | $param['created_uid'] = $this->user['id']; |
| 314 | return $param; | 318 | return $param; |
-
请 注册 或 登录 后发表评论