|
@@ -186,6 +186,7 @@ public class MiniAppController {
|
186
|
186
|
|
187
|
187
|
// 更新用户绑定手机
|
188
|
188
|
String openid = JWTUtils.getSubject(request);
|
|
189
|
+ taPersonService.updatePersonPhone(openid, phoneNoInfo.getPhoneNumber());
|
189
|
190
|
List<TaPerson> taPersons = taPersonService.getPersonsByOpenId(openid);
|
190
|
191
|
if (null == taPersons || taPersons.size() != 1) {
|
191
|
192
|
return ResponseBean.error("验证人员信息失败", ResponseBean.ERROR_UNAVAILABLE);
|
|
@@ -194,7 +195,6 @@ public class MiniAppController {
|
194
|
195
|
QueryWrapper<TaRecommendCustomer> cus= new QueryWrapper<>();
|
195
|
196
|
cus.eq("phone",phoneNoInfo.getPhoneNumber());
|
196
|
197
|
List<TaRecommendCustomer> customer = taRecommendCustomerService.list(cus);
|
197
|
|
- taPersonService.updatePersonPhone(openid, phoneNoInfo.getPhoneNumber());
|
198
|
198
|
if (customer.size()>0){
|
199
|
199
|
TaRecommendCustomer customers = customer.get(0);
|
200
|
200
|
person.setRecommendPerson(customers.getRecommendPerson());
|