|
|
@@ -459,12 +459,12 @@ class ApproachReconsumeOrderForm extends Model
|
|
|
if ($v) {
|
|
|
$goods = ShopGoods::findOneAsArray('ID=:ID AND STATUS=1',[':ID'=> $ids[$k]]);
|
|
|
if (!$goods) {
|
|
|
- throw new Exception(Yii::t('app', 'productsDoesSoldOut'));
|
|
|
+ throw new Exception(Yii::t('app', 'productsDoesSoldOut').'1');
|
|
|
}
|
|
|
$goodsNature = ShopGoodsNature::findOneAsArray('GOODS_ID=:GOODS_ID AND COUNTRY_ID=:COUNTRY_ID',
|
|
|
[':GOODS_ID' => $ids[$k], ':COUNTRY_ID' => $user['COUNTRY_ID']]);
|
|
|
if (!$goodsNature) {
|
|
|
- throw new Exception(Yii::t('app', 'productsDoesSoldOut'));
|
|
|
+ throw new Exception(Yii::t('app', 'productsDoesSoldOut').'2');
|
|
|
}
|
|
|
|
|
|
// 汇率
|
|
|
@@ -584,7 +584,7 @@ class ApproachReconsumeOrderForm extends Model
|
|
|
if ($v){
|
|
|
$goods = ShopGoods::findOneAsArray('ID=:ID AND STATUS=1',[':ID'=> $ids[$k]]);
|
|
|
if (!$goods) {
|
|
|
- throw new Exception(Yii::t('app', 'productsDoesSoldOut'));
|
|
|
+ throw new Exception(Yii::t('app', 'productsDoesSoldOut').'3');
|
|
|
}
|
|
|
if ($goods['STORE_NUMS'] >= $this->goodsNum[$k]){
|
|
|
$data = ShopGoods::find()->where(['ID' => $ids[$k]])->one();
|