|
@@ -163,12 +163,12 @@ public class ActivityController {
|
|
|
logger.debug("获取网页公众号授权信息:" + userInfo.toJSONString());
|
|
|
String unionid = userInfo.getString("unionid");
|
|
|
|
|
|
- String state = "&state=0";// 默认不可助力
|
|
|
- UserAccount user = userAccountService.selectOneByOpenid(openid);
|
|
|
- if(user==null){
|
|
|
- userAccountService.create(userInfo);
|
|
|
- state = "&state=2";// 用户不存在,可以助力
|
|
|
- }
|
|
|
+ String state = "&state=2";// 默认不可助力
|
|
|
+// UserAccount user = userAccountService.selectOneByOpenid(openid);
|
|
|
+// if(user==null){
|
|
|
+// userAccountService.create(userInfo);
|
|
|
+// state = "&state=2";// 用户不存在,可以助力
|
|
|
+// }
|
|
|
if(ahService.getHelpedCount(acjoinId, unionid)>0)
|
|
|
state = "&state=1";// 用户已助力
|
|
|
StringBuilder sb = new StringBuilder(redirectPathSource.getRedirectPath("activityhelpPage", null, null));
|