Commit 42192140 by 吕明尚

修改抖音验卷异常

parent 7289df2a
...@@ -187,9 +187,9 @@ public class TiktokServiceImpl implements TiktokService { ...@@ -187,9 +187,9 @@ public class TiktokServiceImpl implements TiktokService {
return verify(tiktokCouponDto); return verify(tiktokCouponDto);
} }
JSONObject extra = entries.getJSONObject("extra"); JSONObject extra = entries.getJSONObject("extra");
if (data.getStr("error_code").equals(ErrorCodeEnum.SUCCESS.getCode()) && ((JSONObject) data.getJSONArray("verify_results").get(0)).getStr("result").equals(ErrorCodeEnum.SUCCESS.getCode())) { if (data.getStr("error_code").equals(ErrorCodeEnum.SUCCESS.getCode()) && ((JSONObject) data.getJSONArray("verify_results").get(0)).getStr("result").equals(VerifyResultsEnum.SUCCESS.getCode())) {
return data; return data;
} else if (data.getStr("error_code").equals("1208") || data.getJSONObject("verify_results").getStr("result").equals(VerifyResultsEnum.COOKED.getCode())) { } else if (data.getStr("error_code").equals(ErrorCodeEnum.SUCCESS.getCode()) && ((JSONObject) data.getJSONArray("verify_results").get(0)).getStr("result").equals(VerifyResultsEnum.COOKED.getCode())) {
return data; return data;
} else if (!data.getStr("error_code").equals(ErrorCodeEnum.SUCCESS.getCode())) { } else if (!data.getStr("error_code").equals(ErrorCodeEnum.SUCCESS.getCode())) {
compensate(tiktokCouponDto); compensate(tiktokCouponDto);
......
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