diff --git a/application/plugins/touristbuy/service/Service.php b/application/plugins/touristbuy/service/Service.php index 97c2e7b43..8f8d9a986 100755 --- a/application/plugins/touristbuy/service/Service.php +++ b/application/plugins/touristbuy/service/Service.php @@ -49,11 +49,7 @@ class Service if(!empty($user)) { // 用户登录 - $ret = UserService::Login(['accounts'=>$user['username'], 'pwd'=>$user['username']]); - if($ret['code'] == 0) - { - return DataReturn('登录成功', 0, $ret['data']); - } + return UserService::UserLoginHandle($tourist_user_id, $params); } session('tourist_user_id', null); } diff --git a/application/plugins/weixinwebauthorization/service/Service.php b/application/plugins/weixinwebauthorization/service/Service.php index 6cdbb8110..e4fc888b1 100755 --- a/application/plugins/weixinwebauthorization/service/Service.php +++ b/application/plugins/weixinwebauthorization/service/Service.php @@ -55,7 +55,7 @@ class Service } // 用户名 - $username = empty($params['nickname']) ? '微信'.RandomString(6) : $params['nickname'].RandomString(6); + $username = empty($params['nickname']) ? '微信-'.RandomString(6) : $params['nickname'].'-'.RandomString(6); if(mb_strlen($username, 'utf-8') > 18) { $username = mb_substr($username, 0, 18);