Commit 4288075e authored by 王向伟's avatar 王向伟

放款接口 返回值结果判断

parent 9ae10119
......@@ -11,6 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.Objects;
/**
* @author Wang Xiangwei
......@@ -33,8 +34,9 @@ public class MoClothoServiceImpl implements MoClothoService{
paramMap.put("payStatus", expectPayResult ? 3 : 4);
String result = moClothoCenter.pushLendingResult(paramMap);
log.info("[放款结果通知]moClotho返回结果result={}", result);
JsonResult jsonResult = JSONObject.parseObject(result,JsonResult.class);
return jsonResult.isSuccess();
//JsonResult jsonResult = JSONObject.parseObject(result,JsonResult.class);
//return jsonResult.isSuccess();
return Objects.nonNull(result) && "success".equalsIgnoreCase(result);
} else {
return false;
}
......
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