作者 王智

文档修改

@@ -61,8 +61,8 @@ class User extends Api @@ -61,8 +61,8 @@ class User extends Api
61 if (empty($is_open)) { 61 if (empty($is_open)) {
62 /*新增会员到管易平台*/ 62 /*新增会员到管易平台*/
63 $GuanYiCloud = new GuanYiCloud(); 63 $GuanYiCloud = new GuanYiCloud();
64 - $bool= $GuanYiCloud->getvip($Json['unionId']);  
65 - if($bool==0){ 64 + $bool = $GuanYiCloud->getvip($Json['unionId']);
  65 + if ($bool == 0) {
66 $GuanYiCloud->addVip($Json['unionId'], $Json['nickName']); 66 $GuanYiCloud->addVip($Json['unionId'], $Json['nickName']);
67 } 67 }
68 $dataUser = [ 68 $dataUser = [
@@ -1070,7 +1070,7 @@ class User extends Api @@ -1070,7 +1070,7 @@ class User extends Api
1070 if ($params['status'] == 3) { 1070 if ($params['status'] == 3) {
1071 //已下单 1071 //已下单
1072 foreach ($SonUserArray as $k => $v) { 1072 foreach ($SonUserArray as $k => $v) {
1073 - $UpOrder = Db::name('order')->where('user_id', $v['user_id'])->where('status', 'NEQ', 6)->where('status', 'NEQ', 0)->find(); 1073 + $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();
1074 if (!empty($UpOrder)) { 1074 if (!empty($UpOrder)) {
1075 $UserArray[] = $v['user_id']; 1075 $UserArray[] = $v['user_id'];
1076 } 1076 }