liuxiaolong
2020-08-10 9358e5ec2d2b65fec4ef9a1be7d1a1e1e2cf9d2d
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)
               }
            }
            //客户端cid绑定别名
            if cid != "" {
               go BindAlias(cid, phoneNum)
            }
            return true, &vo.UserInfo{
               UserId: u.Id,
               PhoneNum: phoneNum,
@@ -72,6 +76,10 @@
               plateNos = append(plateNos, up.PlateNo)
            }
         }
         //客户端cid绑定别名
         if cid != "" {
            go BindAlias(cid, phoneNum)
         }
         return true, &vo.UserInfo{
            UserId: tmpUser.Id,
            PhoneNum: phoneNum,