From 9358e5ec2d2b65fec4ef9a1be7d1a1e1e2cf9d2d Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期一, 10 八月 2020 16:31:34 +0800 Subject: [PATCH] new push schedule --- service/userService.go | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/service/userService.go b/service/userService.go index 731ee51..2caaeaf 100644 --- a/service/userService.go +++ b/service/userService.go @@ -16,7 +16,7 @@ } -func (sv *UserService) Login(phoneNum, code string) (bool,*vo.UserInfo,error) { +func (sv *UserService) Login(phoneNum, code, cid string) (bool,*vo.UserInfo,error) { if verifyCode(phoneNum, code) { carSv := NewCarService() @@ -54,6 +54,10 @@ plateNos = append(plateNos, up.PlateNo) } } + //瀹㈡埛绔痗id缁戝畾鍒悕 + if cid != "" { + go BindAlias(cid, phoneNum) + } return true, &vo.UserInfo{ UserId: u.Id, PhoneNum: phoneNum, @@ -72,6 +76,10 @@ plateNos = append(plateNos, up.PlateNo) } } + //瀹㈡埛绔痗id缁戝畾鍒悕 + if cid != "" { + go BindAlias(cid, phoneNum) + } return true, &vo.UserInfo{ UserId: tmpUser.Id, PhoneNum: phoneNum, -- Gitblit v1.8.0