zjxpcyc 6 years ago
parent
commit
139e4af8f0
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      service/customer/customer.go

+ 5
- 0
service/customer/customer.go View File

@@ -130,6 +130,11 @@ func (s *CustomerServ) BindWechatUser(userMap *model.TaUserMapping, phone string
130 130
 
131 131
 		// 更新用户手机号码信息及userid信息
132 132
 		customer, err := s.dao.GetCustWithWXByOpenID(wxInfo.OpenID)
133
+		if err != nil {
134
+			utils.LogError("查询用户失败: " + err.Error())
135
+			return nil, errors.New("校验用户数据失败")
136
+		}
137
+
133 138
 		newCust := model.TaCustomer{
134 139
 			CustomerId: customer.CustomerId,
135 140
 			Phone:      user.Phone,