|
@@ -66,10 +66,10 @@ public class AccountServiceImpl implements AccountService {
|
|
|
log.error("户号不存在:{}", accountBindVo.getAccountNum());
|
|
|
throw new CustomException("户号不存在!");
|
|
|
}
|
|
|
- if (!swUserManagementVo.getUsername().equals(accountBindVo.getAccountName())) {
|
|
|
- log.error("户名错误");
|
|
|
- throw new CustomException("户名错误!");
|
|
|
- }
|
|
|
+ // if (!swUserManagementVo.getUsername().equals(accountBindVo.getPhoneNum())) {
|
|
|
+ // log.error("户名错误");
|
|
|
+ // throw new CustomException("户名错误!");
|
|
|
+ // }
|
|
|
String openId = WeChatUtils.getCurrentWeChatOpenId();
|
|
|
if (swUserManagementVo.getWechatSign().contains(openId)) {
|
|
|
log.error("当前户号已绑定");
|
|
@@ -90,6 +90,7 @@ public class AccountServiceImpl implements AccountService {
|
|
|
// swUserWechat.setPhone(accountBindVo.getPhone());
|
|
|
swUserWechat.setUserno(swUserManagementVo.getUsernumber());
|
|
|
swUserWechat.setUsername(swUserManagementVo.getUsername());
|
|
|
+ swUserWechat.setPhone(accountBindVo.getPhoneNum());
|
|
|
swUserWechat.setWechatsign(openId);
|
|
|
swUserWechat.setUserid(swUserManagementVo.getId());
|
|
|
swUserWechat.setCreatedate(new Date());
|