Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/alipay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,10 @@ export class AlipaySdk {
authString += `,app_cert_sn=${this.config.appCertSn}`;
}
authString += `,nonce=${randomUUID()},timestamp=${Date.now()}`;
if (this.config.additionalAuthInfo) {
authString += `,${this.config.additionalAuthInfo}`;
}

// 签名字符串拼接格式:
//
// ```txt
Expand Down
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,6 @@ export interface AlipaySdkConfig {
wsServiceUrl?: string;
/** httpClient 请求代理 */
proxyAgent?: ProxyAgent;
/** Authorization 扩展信息 */
additionalAuthInfo?: string;
}