|
|
|
@ -71,6 +71,14 @@ public class ManagerWechatBindServiceImpl implements ManagerWechatBindService,Ap
|
|
|
|
|
publisher.publishEvent(new CommonPageEvent(this, bindId, "manager_bind_success",manager));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public JSONObject removeBindWechat(String managerId) {
|
|
|
|
|
JSONObject manager = managerMapper.findById(managerId);
|
|
|
|
|
manager.put("wx_openid", null);
|
|
|
|
|
managerMapper.update(manager);
|
|
|
|
|
return managerMapper.findById(managerId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void setOpenId(String managerId, String openId) {
|
|
|
|
|
JSONObject manager = new JSONObject();
|
|
|
|
|
manager.put("manager_id", managerId);
|
|
|
|
|