zjxpcyc 6 lat temu
rodzic
commit
139e4af8f0
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5
    0
      service/customer/customer.go

+ 5
- 0
service/customer/customer.go Wyświetl plik

@@ -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,