Commit eba46316 authored by 黄奎's avatar 黄奎

生成小程序二维码修改

parent b978ad7e
......@@ -774,5 +774,16 @@ namespace Edu.Common
return _IsLocal;
}
}
/// <summary>
/// 临时访问小程序二维码Token
/// </summary>
public static string TempToken
{
get
{
return ReadConfigKey("TempToken");
}
}
}
}
\ No newline at end of file
......@@ -532,7 +532,7 @@ namespace Edu.WebApi.Controllers.Course
string token = Cache.WeChat.WeChatReidsCache2.GetToken(tokenKey);
if (Config.IsLocal == 1)
{
token = "47___nany1N0KvmJYZNkOJmXN6iVEddis5VdBGSBnQst6SLKe_3liKbSDe4mqBQMB6ReW4QfjDLVv5lCALF15mC618pRIkcxbbNTmvNh_ExRgYoK4euIkZBqubz8YHQe9se3FQ8L8q3Kgk9dDmUNREhACAEIV";
token = Common.Config.TempToken;
}
if (string.IsNullOrEmpty(token))
{
......
......@@ -98,5 +98,7 @@
//是否开启调课数据验证
"IsOpenChangeClassVerify": 1,
//是否是本地服务
"IsLocal": 1
"IsLocal": "1",
//临时Token
"TempToken": "47_oXN2xrKRE9InhFMtcCuFx_8Psl2i9TgCYhdHIsvuii5TweFkXvM1J0miUS1sLiRO5GggPOSQqCL1mfVK_ZR9HzV0JAn12TUKctzrBf2p6cFN0gzSUP88Q-iEA3yNgVkL9-DtNpzPL2stAfD7GTRaAIAANL"
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment