@mpxjs/api-proxy
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "@mpxjs/api-proxy", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "convert miniprogram API at each end", | ||
@@ -5,0 +5,0 @@ "module": "src/index.js", |
@@ -522,2 +522,13 @@ import { changeOpts, handleSuccess, getEnvObj, error, warn, noop } from '../utils' | ||
// 抹平用微信的 complete | ||
if (typeof opts.complete === 'function') { | ||
const cacheComplete = opts.complete | ||
opts.complete = function (res) { | ||
if (+res.resultCode === 9000) { | ||
res.errMsg = 'requestPayment:ok' | ||
cacheComplete.call(this, res) | ||
} | ||
} | ||
} | ||
opts.success = function (res) { | ||
@@ -524,0 +535,0 @@ if (+res.resultCode === 9000) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29080
749