diff --git a/market/controllers/api/sylive/GroupsOrder.php b/market/controllers/api/sylive/GroupsOrder.php index 274b2fa7..939930ec 100644 --- a/market/controllers/api/sylive/GroupsOrder.php +++ b/market/controllers/api/sylive/GroupsOrder.php @@ -326,9 +326,11 @@ class groupsOrder extends BaseController $levelAry['levelId3'] && $levelId3 = $levelAry['levelId3']; } } - $re_user2 = $this->mdSyliveUser->get(['mobile' => $mobile, 'status<>' => -1]); - if ($re_user2['userId']) { - $userId = $re_user2['userId']; + //$re_user2 = $this->mdSyliveUser->get(['mobile' => $mobile, 'status<>' => -1]); + //手机号和订单金额为0的订单 + $re_order = $this->mdSyliveOrder->get(['mobile' => $mobile, 'totalPrice' => 0]); + if ($re_order['userId']) { + $userId = $re_order['userId']; } !$createTime && $createTime = "0000-00-00 00:00:00"; $addData = [