完善审核来源标识与图片读取设置
自动发布开发环境 Nacos 配置 / publish (push) Successful in 18s
环境分支晋级检查 / environment-promotion-source (pull_request_target) Successful in 6s

This commit is contained in:
2026-11-03 17:57:12 +08:00
parent 19e2cd2594
commit c626a1e6d6
24 changed files with 530 additions and 27 deletions
+3 -2
View File
@@ -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) {