diff --git a/application/api/controller/User.php b/application/api/controller/User.php index 5e7b172..bf6a0b4 100644 --- a/application/api/controller/User.php +++ b/application/api/controller/User.php @@ -61,8 +61,8 @@ class User extends Api if (empty($is_open)) { /*新增会员到管易平台*/ $GuanYiCloud = new GuanYiCloud(); - $bool= $GuanYiCloud->getvip($Json['unionId']); - if($bool==0){ + $bool = $GuanYiCloud->getvip($Json['unionId']); + if ($bool == 0) { $GuanYiCloud->addVip($Json['unionId'], $Json['nickName']); } $dataUser = [ @@ -1070,7 +1070,7 @@ class User extends Api if ($params['status'] == 3) { //已下单 foreach ($SonUserArray as $k => $v) { - $UpOrder = Db::name('order')->where('user_id', $v['user_id'])->where('status', 'NEQ', 6)->where('status', 'NEQ', 0)->find(); + $UpOrder = Db::name('order')->where('user_id', $v['user_id'])->where('status', 'NEQ', 4)->where('status', 'NEQ', 5)->where('status', 'NEQ', 6)->where('status', 'NEQ', 0)->find(); if (!empty($UpOrder)) { $UserArray[] = $v['user_id']; }