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

Commit dc34d0ce authored by 张国柄's avatar 张国柄

~JOB:商城:商铺活动开启关闭;

parent f656e9e9
......@@ -26,14 +26,10 @@ public class PlatformGoblinTaskHandler {
ResponseDto<String> dto = feignPlatformGoblinTaskClient.goodsOnShelvesHandler();
String dtoStr = JsonUtils.toJson(dto);
log.info("result of handler:{}", dtoStr);
ReturnT<String> success = ReturnT.SUCCESS;
success.setMsg(dtoStr);
return success;
return new ReturnT<>(ReturnT.SUCCESS_CODE, dtoStr);
} catch (Exception e) {
log.error("exception of handler:{}", e.getMessage(), e);
ReturnT<String> fail = ReturnT.FAIL;
fail.setMsg(e.getLocalizedMessage());
return fail;
return new ReturnT<>(ReturnT.FAIL_CODE, e.getLocalizedMessage());
}
}
......@@ -44,14 +40,10 @@ public class PlatformGoblinTaskHandler {
ResponseDto<String> dto = feignPlatformGoblinTaskClient.storeMarketActivityHandler();
String dtoStr = JsonUtils.toJson(dto);
log.info("result of handler:{}", dtoStr);
ReturnT<String> success = ReturnT.SUCCESS;
success.setMsg(dtoStr);
return success;
return new ReturnT<>(ReturnT.SUCCESS_CODE, dtoStr);
} catch (Exception e) {
log.error("exception of handler:{}", e.getMessage(), e);
ReturnT<String> fail = ReturnT.FAIL;
fail.setMsg(e.getLocalizedMessage());
return fail;
return new ReturnT<>(ReturnT.FAIL_CODE, e.getLocalizedMessage());
}
}
}
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