add group manage

This commit is contained in:
Sola
2015-12-31 14:49:18 +08:00
parent 890c001832
commit 78831e5c7a

View File

@@ -129,11 +129,12 @@ public class Register extends HttpServlet {
ps = conn.prepareStatement("UPDATE `operators` SET wechat=? WHERE wechat=?"); ps = conn.prepareStatement("UPDATE `operators` SET wechat=? WHERE wechat=?");
ps.setString(1, u.getWechatId()); ps.setString(1, u.getWechatId());
ps.setString(2, old); ps.setString(2, old);
if (ps.executeUpdate() == 1) { ps.executeUpdate();
WxMpServlet.instance.wxMpService
.userUpdateGroup(u.getWechatId(), 100L);
WxMpServlet.instance.wxMpService.customMessageSend(WxMpCustomMessage.TEXT().toUser(u.getWechatId()).content("数据转换成功").build()); WxMpServlet.instance.wxMpService.customMessageSend(WxMpCustomMessage.TEXT().toUser(u.getWechatId()).content("数据转换成功").build());
return; return;
} }
}
} catch (SQLException | WxErrorException e) { } catch (SQLException | WxErrorException e) {
e.printStackTrace(); e.printStackTrace();
} }