38e9f7bd by joe

分享加次数

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