|
@@ -44,8 +44,8 @@ public class ApiUserServiceImpl extends BaseService implements ApiUserService {
|
|
|
return ApiResponseCodeEnum.CODE_1000.getValue();
|
|
|
} else if (!ArrayUtils.contains(CommonConstant.CAR_FREE_API_ARGS, param.getApi())) {
|
|
|
return ApiResponseCodeEnum.CODE_1080.getValue();
|
|
|
- } else if (CommonUtil.parseDouble(userPo.getBalance()) / CommonUtil.parseDouble(userPo.getPrice()) < CommonUtil.parseDouble(userPo.getPrice())
|
|
|
- && (param.getApi().equals(CommonConstant.WAY_BILL_START) || param.getApi().equals(CommonConstant.WAY_BILL_HISTORY_START))) {
|
|
|
+ } else if (userPo.getBalance() == null || (CommonUtil.parseDouble(userPo.getBalance()) / CommonUtil.parseDouble(userPo.getPrice()) < CommonUtil.parseDouble(userPo.getPrice())
|
|
|
+ && (param.getApi().equals(CommonConstant.WAY_BILL_START) || param.getApi().equals(CommonConstant.WAY_BILL_HISTORY_START)))) {
|
|
|
return ApiResponseCodeEnum.CODE_1090.getValue();
|
|
|
} else {
|
|
|
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(param.getData()));
|