完善审核来源标识与图片读取设置
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const { API_DOMAIN, REQUEST_TIMEOUT, ENABLE_REQUEST_SIGNING } = require('./config')
|
||||
const { API_DOMAIN, REQUEST_TIMEOUT, ENABLE_REQUEST_SIGNING, ENV_VERSION } = require('./config')
|
||||
const auth = require('./auth')
|
||||
const { sha256Hex, hmacSha256Hex, buildCanonicalParams, buildJsonPayload, randomNonce } = require('./crypto')
|
||||
|
||||
@@ -156,7 +156,8 @@ function request(options) {
|
||||
header: {
|
||||
'Content-Type': 'application/json',
|
||||
...signatureHeaders,
|
||||
...(options.header || {})
|
||||
...(options.header || {}),
|
||||
'X-Mini-Program-Env-Version': ENV_VERSION
|
||||
},
|
||||
success(response) {
|
||||
if (response.statusCode === 401) {
|
||||
|
||||
Reference in New Issue
Block a user