|
@ -115,7 +115,7 @@ class GoodsController extends Controller |
|
|
$file_id_str = $model->imageId; |
|
|
$file_id_str = $model->imageId; |
|
|
$model->save(); |
|
|
$model->save(); |
|
|
$goods_manager = new GoodsManager(); |
|
|
$goods_manager = new GoodsManager(); |
|
|
$save_file_res = $goods_manager->saveFile(explode(',', $file_id_str), $model, $old_id_arr); |
|
|
|
|
|
|
|
|
$save_file_res = $goods_manager->saveFile(explode(',', $file_id_str), $model, explode(',', $old_id_arr)); |
|
|
if($save_file_res['status']){ |
|
|
if($save_file_res['status']){ |
|
|
$model->image = $save_file_res['first_file_id']; |
|
|
$model->image = $save_file_res['first_file_id']; |
|
|
$model->save(); |
|
|
$model->save(); |
|
|