修改返回结果字段
This commit is contained in:
@@ -222,9 +222,9 @@ export function clearPaymentReturnResult() {
|
||||
}
|
||||
|
||||
// 失败/成功信号值(大小写不敏感),字段名与取值以日照银行实际返回为准,如不一致只需调整下方映射
|
||||
const FAIL_SIGNALS = ['fail', 'failed', 'cancel', 'cancelled', 'error', 'closed', 'notpay', 'payerror', '2', 'false', 'no']
|
||||
const SUCCESS_SIGNALS = ['success', 'ok', 'paid', 'finish', 'finished', '1', '0000', '0', '200', 'true', 'yes']
|
||||
const RESULT_FIELDS = ['payResult', 'result', 'status', 'payStatus', 'tradeState', 'returnCode', 'code', 'errCode']
|
||||
const FAIL_SIGNALS = ['fail', 'failed', 'cancel', 'cancelled', 'error', 'closed', 'notpay', 'payerror', '2', 'false', 'no', '01']
|
||||
const SUCCESS_SIGNALS = ['success', 'ok', 'paid', 'finish', 'finished', '1', '0000', '0', '200', 'true', 'yes', '00']
|
||||
const RESULT_FIELDS = ['payResult', 'result', 'status', 'payStatus', 'tradeState', 'returnCode', 'code', 'errCode', 'orderState']
|
||||
|
||||
/**
|
||||
* 判定日照银行返回的支付结果:'success' | 'fail' | null(无法判定)
|
||||
|
||||
@@ -54,7 +54,7 @@ onShow(() => {
|
||||
navigatedToPayment.value = false
|
||||
const result = resolvePaymentResult(getPaymentReturnResult())
|
||||
clearPaymentReturnResult()
|
||||
currentStep.value = result === 'fail' ? 3 : 2
|
||||
currentStep.value = result === 'success' ? 2 : 3
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user