|
|
@ -101,9 +101,6 @@ class GoodsController extends Controller |
|
|
|
$model->is_express = Goods::IS_EXPRESS_YES; |
|
|
|
$model->express_type = Goods::EXPRESS_TYPE_EXPRESS_TEMPLATE; |
|
|
|
if ($model->load(Yii::$app->request->post()) && $model->validate()) { |
|
|
|
if ($model->uniform_postage) { |
|
|
|
$model->uniform_postage *= 100; |
|
|
|
} |
|
|
|
//商品封面图和商品详情图上传保存处理
|
|
|
|
$res = GoodsManager::updateGoods(Yii::$app->request->post(), $model); |
|
|
|
if ($res['status']) { |
|
|
@ -133,9 +130,6 @@ class GoodsController extends Controller |
|
|
|
$cover_image_old_id_str = $model->image; |
|
|
|
$detail_image_old_id_str = $model->detailImageId; |
|
|
|
if ($model->load(Yii::$app->request->post()) && $model->validate()) { |
|
|
|
if ($model->uniform_postage) { |
|
|
|
$model->uniform_postage *= 100; |
|
|
|
} |
|
|
|
//商品封面图和商品详情图上传保存处理
|
|
|
|
$res = GoodsManager::updateGoods(Yii::$app->request->post(), $model, $cover_image_old_id_str, $detail_image_old_id_str); |
|
|
|
if ($res['status']) { |
|
|
@ -143,6 +137,8 @@ class GoodsController extends Controller |
|
|
|
} |
|
|
|
} |
|
|
|
$model->uniform_postage /= 100; |
|
|
|
$model->market_price /= 100; |
|
|
|
$model->price /= 100; |
|
|
|
$attributeModel = GoodsManager::getAttribute($id); |
|
|
|
$checkAttr = GoodsManager::getSkuInfo($id); |
|
|
|
$filterAttributeModel = GoodsManager::getFilterAttribute($id); |
|
|
|