소스 검색

助力条件新增

半月无霜 4 년 전
부모
커밋
4413522bdb

+ 6 - 6
ymall/src/main/java/com/liangjian11/ymall/controller/activityCenter/ActivityController.java

@@ -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));

+ 1 - 1
ymall/src/main/java/com/liangjian11/ymall/controller/activityCenter/ActivityHelperController.java

@@ -27,7 +27,7 @@ public class ActivityHelperController {
 		return ahService.query(data);
 	}
 	
-	@ApiOperation("邀请好友弹框图片生成接口")
+	@ApiOperation("帮助好友点击助力")
 	@ApiImplicitParam(name = "json", value = "参数集合{ 'acjoinId': 'acjoinId', 'unionid': '授权用户的unionid' }")
 	@PutMapping("/helped")
 	public ResultInfo helped(@RequestBody JSONObject json){