|
@@ -81,6 +81,23 @@ class QappUserService
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 注销用户
|
|
|
+ * @param $uid
|
|
|
+ * @return bool
|
|
|
+ */
|
|
|
+ public function getLogOff($uid)
|
|
|
+ {
|
|
|
+ $user = QappUser::getUserByUid($uid);
|
|
|
+ if($user && $user->status == 1){
|
|
|
+ $res = QappUser::where('uid',$uid)->update(['status' => 0, 'updated_at' => date('Y-m-d H:i:s')]);
|
|
|
+ if(!$res){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 绑定手机号
|
|
|
* 多个账号可以绑定一个手机号
|
|
|
*/
|
|
@@ -129,6 +146,7 @@ class QappUserService
|
|
|
$qapp_user->app_pay_merchat_id = $user_info->app_pay_merchat_id;
|
|
|
$qapp_user->h5_pay_merchat_id = $user_info->h5_pay_merchat_id;
|
|
|
$qapp_user->ali_pay_merchat_id = $user_info->ali_pay_merchat_id;
|
|
|
+ $qapp_user->status = $user_info->status;
|
|
|
}
|
|
|
|
|
|
/**
|