|
|
|
@@ -704,10 +704,14 @@ public class WxCarController extends BaseController { |
|
|
|
String unionId = objParams.getString(BoLinkUtil.BOLINK_UNION_ID); |
|
|
|
String key = objParams.getString(BoLinkUtil.BOLINK_KEY); |
|
|
|
String ret = BoLinkUtil.getStopFee(url, comid, unionId, key, carNumber); |
|
|
|
JSONObject retObj = JSON.parseObject(ret); |
|
|
|
JSONObject dataObj = retObj.getJSONObject(BoLinkUtil.BOLINK_DATA); |
|
|
|
if (dataObj.getIntValue(BoLinkUtil.BOLINK_STATE) == BoLinkUtil.BOLINK_SUCCESS) { |
|
|
|
return new ResultData(dataObj); |
|
|
|
if (ret != null) { |
|
|
|
JSONObject retObj = JSON.parseObject(ret); |
|
|
|
JSONObject dataObj = retObj.getJSONObject(BoLinkUtil.BOLINK_DATA); |
|
|
|
if (dataObj.getIntValue(BoLinkUtil.BOLINK_STATE) == BoLinkUtil.BOLINK_SUCCESS) { |
|
|
|
return new ResultData(dataObj); |
|
|
|
} else { |
|
|
|
return new ResultData(ErrorCode.BOLINK_STOP_FEE_FAIL); |
|
|
|
} |
|
|
|
} else { |
|
|
|
return new ResultData(ErrorCode.BOLINK_STOP_FEE_FAIL); |
|
|
|
} |
|
|
|
|