|
|
@ -81,7 +81,7 @@ class GoodsManager |
|
|
|
if (!$model->save()) { |
|
|
|
throw new \Exception('商品保存失败'); |
|
|
|
} |
|
|
|
$saveCoverImageRes = self::saveFile(explode(',', $model->coverImageId), $model, explode(',', $coverImageOldIdStr)); |
|
|
|
$saveCoverImageRes = self::saveFile(explode(',', $model->coverImageId), $model, explode(',', $coverImageOldIdStr), File::OWN_TYPE_GOODS_INDEX); |
|
|
|
$saveDetailImageRes = self::saveFile(explode(',', $model->detailImageId), $model, explode(',', $detailImageOldIdStr), File::OWN_TYPE_GOODS_DETAILS); |
|
|
|
if($saveCoverImageRes['first_file_id'] !== 0) { |
|
|
|
$model->image = $saveCoverImageRes['first_file_id']; |
|
|
|