微信小程序支付功能打通
This commit is contained in:
@@ -60,8 +60,9 @@ export function hasWechatAuthCredentials(env?: Record<string, string | undefined
|
||||
|
||||
export function hasWechatPayCredentials(env?: Record<string, string | undefined>): boolean {
|
||||
const e = readEnv(env);
|
||||
const appId = e.WX_MINI_APP_ID?.trim() || e.WX_APP_ID?.trim();
|
||||
return !!(
|
||||
e.WX_APP_ID?.trim() &&
|
||||
appId &&
|
||||
e.WX_MCH_ID?.trim() &&
|
||||
e.WX_MCH_SERIAL_NO?.trim() &&
|
||||
e.WX_MCH_PRIVATE_KEY?.trim() &&
|
||||
|
||||
Reference in New Issue
Block a user