|
@@ -88,7 +88,7 @@ class TradeService extends CrudService {
|
|
// 2.检查商品是否可以购买
|
|
// 2.检查商品是否可以购买
|
|
const goodsData = await this.goodsModel.findById(goods);
|
|
const goodsData = await this.goodsModel.findById(goods);
|
|
const goodsRes = this.checkGoods(goodsData);
|
|
const goodsRes = this.checkGoods(goodsData);
|
|
- if (shopRes.result !== true) {
|
|
|
|
|
|
+ if (goodsRes.result !== true) {
|
|
result = goodsRes;
|
|
result = goodsRes;
|
|
break;
|
|
break;
|
|
}
|
|
}
|