You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
这里ip:port ip 对应公网ip port对应 公网开放端口,微信目前只支持80端口,所以这个对接时请修改为80,首页访问地址为:http://ip:port/RedPacket/WIndexPacketController.indexPage
65
+
支付宝对接地址为:http://ip:port/RedPacket/GatewayController.indexPage这里ip:port ip 对应公网ip port对应 公网开放端口,所以这个对接时请修改为80,首页访问地址为:http://ip:port/RedPacket/IndexPacketController.indexPage
66
+
如果没有微信公众号和支付宝服务窗的情况下需要测试时,BaseController 类下的方法
67
+
/**
68
+
* 登录校验
69
+
*
70
+
* add by wuxw 2016-1-31
71
+
*
72
+
* @param request
73
+
* @return
74
+
*/
75
+
public boolean loginValidate(HttpServletRequest request) {
76
+
// 生产获取用户
77
+
User user = this.getUser();
78
+
// 测试获取用户
79
+
//User user = this.getTestUser();
80
+
if (user == null) {
81
+
return false;
82
+
}
83
+
return true;
84
+
}
85
+
86
+
注释 生产获取用户,放开测试用获取用户,并且在数据库表t_user表中插入数据如下:
87
+
88
+
insert into t_user(name,passwd,phone,userId,wOpenId,zOpenId,email)
0 commit comments