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
 
130
 
131
 		// 更新用户手机号码信息及userid信息
131
 		// 更新用户手机号码信息及userid信息
132
 		customer, err := s.dao.GetCustWithWXByOpenID(wxInfo.OpenID)
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
 		newCust := model.TaCustomer{
138
 		newCust := model.TaCustomer{
134
 			CustomerId: customer.CustomerId,
139
 			CustomerId: customer.CustomerId,
135
 			Phone:      user.Phone,
140
 			Phone:      user.Phone,