|
@@ -275,11 +275,11 @@ class ShopGoodsForm extends Model
|
|
|
throw new Exception(Form::formatErrorsForApi($model->getErrors()));
|
|
throw new Exception(Form::formatErrorsForApi($model->getErrors()));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 移除属性表中商品属性
|
|
|
|
|
- ShopGoodsNature::deleteAll(['GOODS_ID' => $model->ID]);
|
|
|
|
|
|
|
|
|
|
// 商品属性
|
|
// 商品属性
|
|
|
foreach ($this->nature as $item) {
|
|
foreach ($this->nature as $item) {
|
|
|
|
|
+ ShopGoodsNature::deleteAll(['GOODS_ID' => $model->ID, 'COUNTRY_ID' => $item['COUNTRY_ID']]);
|
|
|
|
|
+
|
|
|
// 国家
|
|
// 国家
|
|
|
$country = Countries::getById($item['ID']);
|
|
$country = Countries::getById($item['ID']);
|
|
|
// 转换美元汇率
|
|
// 转换美元汇率
|