Showing
1 changed file
with
8 additions
and
3 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2025-01-25 10:00:00 | 2 | * @Date: 2025-01-25 10:00:00 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-09-12 23:34:54 | 4 | + * @LastEditTime: 2025-09-13 09:07:59 |
| 5 | * @FilePath: /lls_program/src/utils/authRedirect.js | 5 | * @FilePath: /lls_program/src/utils/authRedirect.js |
| 6 | * @Description: 授权重定向处理工具函数 | 6 | * @Description: 授权重定向处理工具函数 |
| 7 | */ | 7 | */ |
| ... | @@ -264,8 +264,8 @@ export const silentAuth = async (onSuccess, onError) => { | ... | @@ -264,8 +264,8 @@ export const silentAuth = async (onSuccess, onError) => { |
| 264 | 264 | ||
| 265 | // 测试环境下传递openid,正式环境不传递 | 265 | // 测试环境下传递openid,正式环境不传递 |
| 266 | if (process.env.NODE_ENV === 'development') { | 266 | if (process.env.NODE_ENV === 'development') { |
| 267 | - // requestData.openid = 'h-008'; | 267 | + requestData.openid = 'h-008'; |
| 268 | - requestData.openid = 'h-009'; | 268 | + // requestData.openid = 'h-009'; |
| 269 | // requestData.openid = 'h-010'; | 269 | // requestData.openid = 'h-010'; |
| 270 | // requestData.openid = 'h-011'; | 270 | // requestData.openid = 'h-011'; |
| 271 | // requestData.openid = 'h-012'; | 271 | // requestData.openid = 'h-012'; |
| ... | @@ -274,6 +274,11 @@ export const silentAuth = async (onSuccess, onError) => { | ... | @@ -274,6 +274,11 @@ export const silentAuth = async (onSuccess, onError) => { |
| 274 | // requestData.openid = 'oex8h5QZnZJto3ttvO6swSvylAQo'; | 274 | // requestData.openid = 'oex8h5QZnZJto3ttvO6swSvylAQo'; |
| 275 | } | 275 | } |
| 276 | 276 | ||
| 277 | + // 正式环境下传递openid | ||
| 278 | + // if (process.env.NODE_ENV === 'production') { | ||
| 279 | + // requestData.openid = 'h-013'; | ||
| 280 | + // } | ||
| 281 | + | ||
| 277 | // 发起授权请求 | 282 | // 发起授权请求 |
| 278 | const response = await request.post('/srv/?a=openid', requestData) | 283 | const response = await request.post('/srv/?a=openid', requestData) |
| 279 | Taro.hideLoading() | 284 | Taro.hideLoading() | ... | ... |
-
Please register or login to post a comment