|
|
@ -7,6 +7,7 @@ use backend\modules\goods\models\ars\GoodsAttr; |
|
|
|
use backend\modules\goods\models\ars\GoodsSku; |
|
|
|
use backend\models\ars\OrderGoods; |
|
|
|
use backend\modules\file\models\ars\TemFile; |
|
|
|
use backend\modules\shop\logic\ShopManager; |
|
|
|
use MongoDB\Driver\Manager; |
|
|
|
use Yii; |
|
|
|
use backend\modules\goods\models\ars\Goods; |
|
|
@ -137,9 +138,9 @@ class GoodsController extends Controller |
|
|
|
return $this->redirect('index'); |
|
|
|
} |
|
|
|
} |
|
|
|
$model->uniform_postage /= 100; |
|
|
|
$model->market_price /= 100; |
|
|
|
$model->price /= 100; |
|
|
|
$model->uniform_postage /= ShopManager::proportionalConversion(ShopManager::UNIT_TYPE_MONEY); |
|
|
|
$model->market_price /= ShopManager::proportionalConversion(ShopManager::UNIT_TYPE_MONEY); |
|
|
|
$model->price /= ShopManager::proportionalConversion(ShopManager::UNIT_TYPE_MONEY); |
|
|
|
$goodsAttributes = GoodsAttr::find()->where(['goods_id' => $id, 'is_delete' => GoodsAttr::IS_DELETE_NO])->andWhere(['!=', 'attr_id', 0])->all(); |
|
|
|
$attributeModel = GoodsManager::getAttribute($goodsAttributes); |
|
|
|
$checkAttr = GoodsManager::getSkuInfo($id); |
|
|
|