diff --git a/app/api/logic/OrderLogic.php b/app/api/logic/OrderLogic.php index c135e76d..ea4b78a5 100755 --- a/app/api/logic/OrderLogic.php +++ b/app/api/logic/OrderLogic.php @@ -120,7 +120,7 @@ class OrderLogic extends Logic Db::startTrans(); try { if ($post['order_type'] == 4) { - $in_activity = Order::where(['user_id' => $userId, 'order_type' => 4])->where('order_status', '<', 4)->find(); + $in_activity = Order::where(['user_id' => $post['user_id'], 'order_type' => 4])->where('order_status', '<', 4)->find(); if ($in_activity) { throw new Exception('每位用户只能限抢一件商品'); }