记得上下班打卡 | git大法好,push需谨慎

Commit d6643631 authored by dongchun's avatar dongchun

Merge remote-tracking branch 'origin/dev_20111115' into dev_20111115

parents 63072456 02b8eaa9
......@@ -42,16 +42,14 @@ public class DoTaskUtils {
redisUtil.set(ChimeConstant.REDIS_USER_OPEN_NUM + currentUserId, slidCount, timeout);
//获取用户是否调用过任务接口
boolean hasKey = redisUtil.hasKey(ChimeConstant.REDIS_USER_TO_DOTASK + currentUserId);
if (!hasKey) {
Object taskObj = redisUtil.get(ChimeConstant.REDIS_USER_TO_DOTASK + currentUserId);
if (taskObj == null){
//满足10次调用接口,每天最多调用一次
if (slidCount >= 10) {
MultiValueMap<String, String> params = CollectionUtil.linkedMultiValueMapStringString();
params.add("uid", currentUserId);
params.add("taskId", 3 + "");
String resultData = HttpUtil.post(stoneUrl + "/user/inner/doTask", params);
ChimeUserDoTask chimeUserDoTask = JsonUtils.fromJson(resultData, ChimeUserDoTask.class);
Boolean success = chimeUserDoTask.getSuccess();
//接口调用失败,重试
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment