Commit 83243add authored by 宋新宇's avatar 宋新宇

dyvideo加日志

parent e494ebb0
...@@ -292,7 +292,7 @@ public class DyVideoUniversalProcess extends UniversalProcess { ...@@ -292,7 +292,7 @@ public class DyVideoUniversalProcess extends UniversalProcess {
VideoUpload videoUpload = action.getVideoUpload(); VideoUpload videoUpload = action.getVideoUpload();
String url = Objects.equals(env.getActiveProfiles()[0],"prod") ? lottoProdUrl : lottoDevUrl; String url = Objects.equals(env.getActiveProfiles()[0],"prod") ? lottoProdUrl : lottoDevUrl;
String result = ""; String result = "";
Integer resultCode = -1; String resultCode = "";
try { try {
url += "microapp/gy/info/apxsbkjc"; url += "microapp/gy/info/apxsbkjc";
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
...@@ -303,8 +303,8 @@ public class DyVideoUniversalProcess extends UniversalProcess { ...@@ -303,8 +303,8 @@ public class DyVideoUniversalProcess extends UniversalProcess {
map.put("channel",action.getChannelId()); map.put("channel",action.getChannelId());
result = HttpUtil.post(url, JSONObject.toJSONString(map)); result = HttpUtil.post(url, JSONObject.toJSONString(map));
resultCode = (Integer) JSON.parseObject(result).get("code"); resultCode = (String) JSON.parseObject(result).get("code");
if (resultCode == 0) { if ("0".equals(resultCode)) {
DYVIDEO_SYS_LOG.info("dyvideo upload user success,result={},videoUpload={}",JSONObject.toJSONString(result),JSONObject.toJSONString(videoUpload)); DYVIDEO_SYS_LOG.info("dyvideo upload user success,result={},videoUpload={}",JSONObject.toJSONString(result),JSONObject.toJSONString(videoUpload));
} else { } else {
DYVIDEO_ERROR_LOG.error("dyvideo upload user fail,result={},videoUpload={}",JSONObject.toJSONString(result),JSONObject.toJSONString(videoUpload)); DYVIDEO_ERROR_LOG.error("dyvideo upload user fail,result={},videoUpload={}",JSONObject.toJSONString(result),JSONObject.toJSONString(videoUpload));
...@@ -319,12 +319,12 @@ public class DyVideoUniversalProcess extends UniversalProcess { ...@@ -319,12 +319,12 @@ public class DyVideoUniversalProcess extends UniversalProcess {
VideoUpload videoUpload = action.getVideoUpload(); VideoUpload videoUpload = action.getVideoUpload();
String url = Objects.equals(env.getActiveProfiles()[0],"prod") ? lottoProdUrl : lottoDevUrl; String url = Objects.equals(env.getActiveProfiles()[0],"prod") ? lottoProdUrl : lottoDevUrl;
String result = ""; String result = "";
Integer resultCode = -1; String resultCode = "";
try { try {
url += "microapp/record/info/apxsbkjc"; url += "microapp/record/info/apxsbkjc";
result = HttpUtil.post(url, jsonBody); result = HttpUtil.post(url, jsonBody);
resultCode = (Integer) JSON.parseObject(result).get("code"); resultCode = (String) JSON.parseObject(result).get("code");
if (resultCode == 0) { if ("0".equals(resultCode)) {
DYVIDEO_SYS_LOG.info("dyvideo upload ads success,result={},videoUpload={}",JSONObject.toJSONString(result),JSONObject.toJSONString(videoUpload)); DYVIDEO_SYS_LOG.info("dyvideo upload ads success,result={},videoUpload={}",JSONObject.toJSONString(result),JSONObject.toJSONString(videoUpload));
} else { } else {
DYVIDEO_ERROR_LOG.error("dyvideo upload ads fail,result={},videoUpload={}",JSONObject.toJSONString(result),JSONObject.toJSONString(videoUpload)); DYVIDEO_ERROR_LOG.error("dyvideo upload ads fail,result={},videoUpload={}",JSONObject.toJSONString(result),JSONObject.toJSONString(videoUpload));
......
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