Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
eba46316
Commit
eba46316
authored
3 years ago
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成小程序二维码修改
parent
b978ad7e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
Config.cs
Edu.Common/Config.cs
+11
-0
EducationContractController.cs
Edu.WebApi/Controllers/Course/EducationContractController.cs
+1
-1
appsettings.json
Edu.WebApi/appsettings.json
+3
-1
No files found.
Edu.Common/Config.cs
View file @
eba46316
...
@@ -774,5 +774,16 @@ namespace Edu.Common
...
@@ -774,5 +774,16 @@ namespace Edu.Common
return
_IsLocal
;
return
_IsLocal
;
}
}
}
}
/// <summary>
/// 临时访问小程序二维码Token
/// </summary>
public
static
string
TempToken
{
get
{
return
ReadConfigKey
(
"TempToken"
);
}
}
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Edu.WebApi/Controllers/Course/EducationContractController.cs
View file @
eba46316
...
@@ -532,7 +532,7 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -532,7 +532,7 @@ namespace Edu.WebApi.Controllers.Course
string
token
=
Cache
.
WeChat
.
WeChatReidsCache2
.
GetToken
(
tokenKey
);
string
token
=
Cache
.
WeChat
.
WeChatReidsCache2
.
GetToken
(
tokenKey
);
if
(
Config
.
IsLocal
==
1
)
if
(
Config
.
IsLocal
==
1
)
{
{
token
=
"47___nany1N0KvmJYZNkOJmXN6iVEddis5VdBGSBnQst6SLKe_3liKbSDe4mqBQMB6ReW4QfjDLVv5lCALF15mC618pRIkcxbbNTmvNh_ExRgYoK4euIkZBqubz8YHQe9se3FQ8L8q3Kgk9dDmUNREhACAEIV"
;
token
=
Common
.
Config
.
TempToken
;
}
}
if
(
string
.
IsNullOrEmpty
(
token
))
if
(
string
.
IsNullOrEmpty
(
token
))
{
{
...
...
This diff is collapsed.
Click to expand it.
Edu.WebApi/appsettings.json
View file @
eba46316
...
@@ -98,5 +98,7 @@
...
@@ -98,5 +98,7 @@
//是否开启调课数据验证
//是否开启调课数据验证
"IsOpenChangeClassVerify"
:
1
,
"IsOpenChangeClassVerify"
:
1
,
//是否是本地服务
//是否是本地服务
"IsLocal"
:
1
"IsLocal"
:
"1"
,
//临时Token
"TempToken"
:
"47_oXN2xrKRE9InhFMtcCuFx_8Psl2i9TgCYhdHIsvuii5TweFkXvM1J0miUS1sLiRO5GggPOSQqCL1mfVK_ZR9HzV0JAn12TUKctzrBf2p6cFN0gzSUP88Q-iEA3yNgVkL9-DtNpzPL2stAfD7GTRaAIAANL"
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment