Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
lls_program
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-09-13 09:08:11 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
76cc495e340e14d254a6ba670d8bd5f6f45954e6
76cc495e
1 parent
9e8a92f6
fix: 恢复测试环境下的默认openid为h-008
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
src/utils/authRedirect.js
src/utils/authRedirect.js
View file @
76cc495
/*
* @Date: 2025-01-25 10:00:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-1
2 23:34:54
* @LastEditTime: 2025-09-1
3 09:07:59
* @FilePath: /lls_program/src/utils/authRedirect.js
* @Description: 授权重定向处理工具函数
*/
...
...
@@ -264,8 +264,8 @@ export const silentAuth = async (onSuccess, onError) => {
// 测试环境下传递openid,正式环境不传递
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
//
requestData.openid = 'h-008';
requestData
.
openid
=
'h-009'
;
requestData
.
openid
=
'h-008'
;
//
requestData.openid = 'h-009';
// requestData.openid = 'h-010';
// requestData.openid = 'h-011';
// requestData.openid = 'h-012';
...
...
@@ -274,6 +274,11 @@ export const silentAuth = async (onSuccess, onError) => {
// requestData.openid = 'oex8h5QZnZJto3ttvO6swSvylAQo';
}
// 正式环境下传递openid
// if (process.env.NODE_ENV === 'production') {
// requestData.openid = 'h-013';
// }
// 发起授权请求
const
response
=
await
request
.
post
(
'/srv/?a=openid'
,
requestData
)
Taro
.
hideLoading
()
...
...
Please
register
or
login
to post a comment