fix(mini-user): H5 pay use USER_H5; center login phone input
CI / verify (pull_request) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-15 20:55:09 +08:00
parent 9a3ccabcc9
commit 02aecbeaab
3 changed files with 29 additions and 7 deletions
+3 -1
View File
@@ -18,7 +18,9 @@ function resolveApiBase(): string {
export const API_BASE = resolveApiBase();
const TOKEN_KEY = 'user_access_token';
const REFRESH_KEY = 'user_refresh_token';
export const CLIENT_APP = ClientApp.USER_MINI;
/** H5 产物走公众号体系(USER_H5);小程序原生走 USER_MINI。勿混用,否则 JSAPI 会出现 appid 与 openid 不匹配 */
export const CLIENT_APP =
process.env.TARO_ENV === 'h5' ? ClientApp.USER_H5 : ClientApp.USER_MINI;
export function getToken(): string {
try {