|
|
@@ -44,7 +44,7 @@ public class CoralApiServiceImpl implements CoralApiService {
|
|
|
String res = HttpUtils.sendGet(newCoral + url, params);
|
|
|
System.out.println(res);
|
|
|
JSONObject info = JSON.parseObject(res);
|
|
|
- if (Integer.parseInt(info.get("code").toString()) != 0) {
|
|
|
+ if (info.get("code") == null || Integer.parseInt(info.get("code").toString()) != 0) {
|
|
|
return null;
|
|
|
}
|
|
|
JSONObject data = JSON.parseObject(info.get("data").toString());
|