|
|
|
@ -218,9 +218,9 @@ public class SavePurchaseSettingService extends SPIBaseService implements Extens
|
|
|
|
|
log.error("自动扣款协议请求失败,原因:" + jsonObject.getString("reason"));
|
|
|
|
|
throw new RuntimeException(jsonObject.getString("reason"));
|
|
|
|
|
} else {
|
|
|
|
|
JSONObject paymentAgreements = jsonObject.getJSONObject("data").getJSONObject("paymentAgreements");
|
|
|
|
|
for (Object paymentAgreement : paymentAgreements.values()) {
|
|
|
|
|
JSONObject obj = (JSONObject)paymentAgreement;
|
|
|
|
|
JSONArray paymentAgreements = jsonObject.getJSONObject("data").getJSONArray("paymentAgreements");
|
|
|
|
|
for (int i = 0; i < paymentAgreements.size(); i++) {
|
|
|
|
|
JSONObject obj = paymentAgreements.getJSONObject(i);
|
|
|
|
|
String signedStatus = obj.getString("signedStatus");
|
|
|
|
|
if (signedStatus.equals("true")) {
|
|
|
|
|
isSigned = true;
|
|
|
|
|