refactor(app): 注释掉订单商品状态检查逻辑

在 OrderLogic
This commit is contained in:
mkm 2025-01-15 14:20:38 +08:00
parent ed68949326
commit 99499f3334

View File

@ -100,9 +100,9 @@ class OrderLogic extends BaseLogic
if ($source == 2) {
$field = 'product_id,product_id id,store_name,image,unit,price,vip_price,cost,purchase,cate_id,store_info,rose,status';
$find = StoreBranchProduct::where(['product_id' => $v['product_id'], 'store_id' => $params['store_id']])->field($field)->find();
if($find && $find['status']==0){
throw new BusinessException('订单存在下架商品请更换后下单');
}
// if($find && $find['status']==0){
// throw new BusinessException('订单存在下架商品请更换后下单');
// }
} else {
$find = StoreProduct::where(['id' => $v['product_id']])->field($field)->find();
if (!empty($user['user_ship'])) {