38e9f7bd by joe

分享加次数

1 parent f6312d7a
...@@ -53,7 +53,7 @@ public class ScoreLogInfoController { ...@@ -53,7 +53,7 @@ public class ScoreLogInfoController {
53 String access_token, String state, String timestamp, String rands, String jsondata, String checksum, 53 String access_token, String state, String timestamp, String rands, String jsondata, String checksum,
54 String secret, String sign, String signTime) throws ParseException, UnsupportedEncodingException { 54 String secret, String sign, String signTime) throws ParseException, UnsupportedEncodingException {
55 MessageEntity.Builder builder = new MessageEntity.Builder(request); 55 MessageEntity.Builder builder = new MessageEntity.Builder(request);
56 if (scoreLogInfo.getScore() < 4000) { 56 if (scoreLogInfo.getScore() < 3000) {
57 return null; 57 return null;
58 } 58 }
59 if (scoreLogInfo.getScore() > 30000) { 59 if (scoreLogInfo.getScore() > 30000) {
......
...@@ -32,6 +32,9 @@ public class ScoreLogInfoServiceImpl implements ScoreLogInfoService { ...@@ -32,6 +32,9 @@ public class ScoreLogInfoServiceImpl implements ScoreLogInfoService {
32 @Autowired 32 @Autowired
33 private ShareLogMapper shareLogMapper; 33 private ShareLogMapper shareLogMapper;
34 34
35 @Autowired
36 private ScoreLogInfoService scoreLogInfoService;
37
35 @Override 38 @Override
36 public String save(ScoreLogInfo scoreLogInfo) { 39 public String save(ScoreLogInfo scoreLogInfo) {
37 String code = "2000"; 40 String code = "2000";
...@@ -47,7 +50,11 @@ public class ScoreLogInfoServiceImpl implements ScoreLogInfoService { ...@@ -47,7 +50,11 @@ public class ScoreLogInfoServiceImpl implements ScoreLogInfoService {
47 code = "9901"; 50 code = "9901";
48 }else{ 51 }else{
49 long count = this.countToDay(scoreLogInfo.getOpenid()); 52 long count = this.countToDay(scoreLogInfo.getOpenid());
50 if(count >= maxTime){ 53 long s = this.scoreLogInfoService.shareToday(scoreLogInfo.getOpenid());
54 if (s > 5) {
55 s = 5;
56 }
57 if(count - s >= maxTime){
51 code = "9902"; 58 code = "9902";
52 }else{ 59 }else{
53 Integer score = scoreLogInfo.getScore(); 60 Integer score = scoreLogInfo.getScore();
......