1
This commit is contained in:
@@ -9,6 +9,7 @@ use App\Model\UserPatient as UserPatientModel;
|
||||
use App\Model\UserPharmacist as UserPharmacistModel;
|
||||
use App\Utils\Http;
|
||||
use App\Utils\Jwt;
|
||||
use Extend\TencentIm\Account;
|
||||
use Extend\Wechat\Wechat;
|
||||
use Hyperf\DbConnection\Db;
|
||||
use Hyperf\Redis\Redis;
|
||||
@@ -85,7 +86,6 @@ class LoginService extends BaseService
|
||||
$data['union_id'] = $wx_info_data['unionid'] ?? "";
|
||||
$data['wx_session_key'] = $wx_info_data['session_key'];
|
||||
$data['status'] = 1;
|
||||
$data['mobile'] = $phone_info['phone_info']['purePhoneNumber'];
|
||||
|
||||
if ($user['user_type'] == 1) {
|
||||
// 患者
|
||||
@@ -114,6 +114,11 @@ class LoginService extends BaseService
|
||||
|
||||
$client_user_id = $user_doctor['doctor_id'];
|
||||
}
|
||||
|
||||
// 创建im账号
|
||||
$account = new Account();
|
||||
// 创建单个账号
|
||||
$account->createAccount($user->user_id,$user->user_name,"");
|
||||
} else {
|
||||
// 已注册用户
|
||||
// 重复注册不同端
|
||||
@@ -272,7 +277,6 @@ class LoginService extends BaseService
|
||||
$data['user_id'] = $user->user_id;
|
||||
$data['user_name'] = $user['user_name'];
|
||||
$data['status'] = 1;
|
||||
$data['mobile'] = $phone;
|
||||
|
||||
if ($user['user_type'] == 1) {
|
||||
// 患者
|
||||
|
||||
Reference in New Issue
Block a user