@xiashe/sdk 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alipayWallet.mjs +10 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/alipayWallet.mjs
CHANGED
|
@@ -883,7 +883,16 @@ export async function diagnoseAlipay402Resource(input, options = {}) {
|
|
|
883
883
|
// optional command after a failed payment.
|
|
884
884
|
if (state.lastFailureCode === 'wallet_trade_progress_failed') {
|
|
885
885
|
const support = await createAlipay402SupportReport({ resourceUrl }, options);
|
|
886
|
-
if (support.ok && support.report)
|
|
886
|
+
if (support.ok && support.report) {
|
|
887
|
+
result.supportReport = support.report;
|
|
888
|
+
// Some Agents intentionally present only `userVisible` from a bridge
|
|
889
|
+
// result. Put the already-redacted support text there as well so the
|
|
890
|
+
// only useful evidence from this generic upstream error is not silently
|
|
891
|
+
// dropped by a client-side response mapper.
|
|
892
|
+
result.userVisible = [result.userVisible, '', '支付宝支持诊断:', support.report.text]
|
|
893
|
+
.filter((line) => typeof line === 'string' && line.length > 0)
|
|
894
|
+
.join('\n');
|
|
895
|
+
}
|
|
887
896
|
}
|
|
888
897
|
return result;
|
|
889
898
|
}
|
package/index.mjs
CHANGED