add group manage

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

View File

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