Commit 9ae10119 authored by 王向伟's avatar 王向伟

放款接口 返回值结果判断

parent e54f0634
...@@ -20,6 +20,7 @@ import org.springframework.stereotype.Service; ...@@ -20,6 +20,7 @@ import org.springframework.stereotype.Service;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.Objects;
/** /**
* Created by WeiWei on 2019/8/12. * Created by WeiWei on 2019/8/12.
...@@ -72,8 +73,8 @@ public class KoalaCenterService { ...@@ -72,8 +73,8 @@ public class KoalaCenterService {
put("peopleLimit", pepoleLimit); put("peopleLimit", pepoleLimit);
}}); }});
JsonResult jsonObject = JSONObject.parseObject(data, JsonResult.class); //JsonResult jsonObject = JSONObject.parseObject(data, JsonResult.class);
return jsonObject.isSuccess(); return Objects.nonNull(data) && "success".equalsIgnoreCase(data);
} else { } else {
return false; 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