From cdf6e7e9a006eed28e623cd7993cbb95151079de Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Sat, 29 Jun 2019 00:13:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/UserService.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/application/service/UserService.php b/application/service/UserService.php index c7ea4aef8..b88da5950 100755 --- a/application/service/UserService.php +++ b/application/service/UserService.php @@ -1780,6 +1780,16 @@ class UserService return DataReturn('用户openid不能为空', -20); } + // 是否需要审核 + $common_register_is_enable_audit = MyC('common_register_is_enable_audit', 0); + + // 用户数据 + $data = array( + $accounts_field => $params[$accounts_field], + 'mobile' => $params['mobile'], + 'status' => ($common_register_is_enable_audit == 1) ? 3 : 0, + ); + // 获取用户信息 $temp_user = Db::name('User')->where('mobile', '=', $data['mobile'])->find(); $open_user = Db::name('User')->where($accounts_field, '=', $params[$accounts_field])->find(); @@ -1795,16 +1805,6 @@ class UserService $temp_user = $open_user; } - // 是否需要审核 - $common_register_is_enable_audit = MyC('common_register_is_enable_audit', 0); - - // 用户数据 - $data = array( - $accounts_field => $params[$accounts_field], - 'mobile' => $params['mobile'], - 'status' => ($common_register_is_enable_audit == 1) ? 3 : 0, - ); - // 额外信息 if(empty($temp_user['nickname']) && !empty($params['nickname'])) {