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