fix bug 微信绑定
This commit is contained in:
+4
-2
@@ -261,8 +261,10 @@ public class CompanyLoginController {
|
|||||||
PayContactsManagement contactsManagement1 = payContactsManagementService.getOne(queryWrapper1);
|
PayContactsManagement contactsManagement1 = payContactsManagementService.getOne(queryWrapper1);
|
||||||
//绑定过就解绑重新绑定
|
//绑定过就解绑重新绑定
|
||||||
if (contactsManagement1 != null){
|
if (contactsManagement1 != null){
|
||||||
contactsManagement1.setOpenId(null);
|
LambdaUpdateWrapper<PayContactsManagement> updateWrapper = new LambdaUpdateWrapper<>();
|
||||||
payContactsManagementService.updateById(contactsManagement);
|
updateWrapper.eq(PayContactsManagement::getId,contactsManagement1.getId());
|
||||||
|
updateWrapper.set(PayContactsManagement::getOpenId,null);
|
||||||
|
payContactsManagementService.update(updateWrapper);
|
||||||
}
|
}
|
||||||
//绑定微信
|
//绑定微信
|
||||||
contactsManagement.setOpenId(PasswordUtil.encrypt(openId));
|
contactsManagement.setOpenId(PasswordUtil.encrypt(openId));
|
||||||
|
|||||||
Reference in New Issue
Block a user