汇付基础响应

This commit is contained in:
2023-08-21 13:24:07 +08:00
parent 3893afaa06
commit 68444ebc23
2 changed files with 11 additions and 1 deletions

View File

@@ -663,7 +663,7 @@ public class AdapayService {
if (response != null) {
QueryDrawCashResponse queryDrawCashResponse = JSON.parseObject(JSON.toJSONString(response), QueryDrawCashResponse.class);
if (queryDrawCashResponse == null || !StringUtils.equals(queryDrawCashResponse.getStatus(), "succeeded")) {
if (queryDrawCashResponse == null || queryDrawCashResponse.isNotSuccess()) {
return null;
}
QueryDrawCashResponse.Cash cash = queryDrawCashResponse.getCashList().get(0);