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

Commit 992147d4 authored by jiangxiulong's avatar jiangxiulong

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

parents 3afaa51f aae66e5e
...@@ -206,7 +206,7 @@ public class KylinOrderTickets implements Serializable, Cloneable { ...@@ -206,7 +206,7 @@ public class KylinOrderTickets implements Serializable, Cloneable {
/** /**
* ip地址 * ip地址
*/ */
private Integer ipAddress; private String ipAddress;
/** /**
* comment * comment
......
...@@ -46,18 +46,14 @@ public class DoTaskUtils { ...@@ -46,18 +46,14 @@ public class DoTaskUtils {
if (taskObj == null){ if (taskObj == null){
//满足10次调用接口,每天最多调用一次 //满足10次调用接口,每天最多调用一次
if (slidCount >= 10) { if (slidCount >= 10) {
try {
MultiValueMap<String, String> params = CollectionUtil.linkedMultiValueMapStringString(); MultiValueMap<String, String> params = CollectionUtil.linkedMultiValueMapStringString();
params.add("uid", currentUserId); params.add("uid", currentUserId);
params.add("taskId", 3 + ""); params.add("taskId", 3 + "");
String resultData = HttpUtil.post(stoneUrl + "/user/inner/doTask", params); String resultData = HttpUtil.post(stoneUrl + "/user/inner/doTask", params);
ChimeUserDoTask chimeUserDoTask = JsonUtils.fromJson(resultData, ChimeUserDoTask.class);
Boolean success = chimeUserDoTask.getSuccess();
//接口调用失败,重试
if (!success) {
this.userAddNum(currentUserId);
} else {
//调用接口成功,记录
redisUtil.set(ChimeConstant.REDIS_USER_TO_DOTASK + currentUserId, 1, timeout); redisUtil.set(ChimeConstant.REDIS_USER_TO_DOTASK + currentUserId, 1, timeout);
}catch (Exception e){
log.error("任务接口调用失败currentUserId:"+currentUserId,e);
} }
} }
} }
......
...@@ -314,11 +314,11 @@ public class StoneScoreLogsServiceImpl implements IStoneScoreLogsService { ...@@ -314,11 +314,11 @@ public class StoneScoreLogsServiceImpl implements IStoneScoreLogsService {
*/ */
private LocalDateTime getOverdueAt() { private LocalDateTime getOverdueAt() {
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
LocalDateTime overdueAt = LocalDateTime.of(now.getHour(), 10, 27, 0, 0, 0); LocalDateTime overdueAt = LocalDateTime.of(now.getYear(), 10, 27, 0, 0, 0);
if (now.isAfter(overdueAt)) { if (now.isAfter(overdueAt)) {
overdueAt = LocalDateTime.of(now.getHour() + 1, 12, 27, 0, 0, 0); overdueAt = LocalDateTime.of(now.getYear() + 1, 12, 27, 0, 0, 0);
} else { } else {
overdueAt = LocalDateTime.of(now.getHour(), 12, 27, 0, 0, 0); overdueAt = LocalDateTime.of(now.getYear(), 12, 27, 0, 0, 0);
} }
return overdueAt; return overdueAt;
} }
......
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