Commit 7582de54 authored by 黄奎's avatar 黄奎

页面修改

parent 5ed3e1c1
......@@ -531,7 +531,7 @@ namespace Edu.WebApi.Controllers.Course
public ApiResult CreateWeChatCode()
{
string url = base.ParmJObj.GetStringValue("url");
var newUrl = "/pages/webbox/webbox?u=" + HttpUtility.UrlEncode(url);
var newUrl = "/pages/webbox/webbox?u="+ HttpUtility.UrlEncode(url);
int width = base.ParmJObj.GetInt("width");
if (width <= 0)
{
......@@ -548,7 +548,7 @@ namespace Edu.WebApi.Controllers.Course
token = Common.Plugin.WeChatHelper.GetAccessToken(Common.Config.AppID, Common.Config.AppSecret);
Cache.WeChat.WeChatReidsCache2.Set(tokenKey, token);
}
string filePath = Common.Plugin.WeChatHelper.GetWeChatQRCode(token,url, width);
string filePath = Common.Plugin.WeChatHelper.GetWeChatQRCode(token, newUrl, width);
return ApiResult.Success(data: filePath);
}
}
......
......@@ -64,7 +64,8 @@ namespace Edu.WebApi
"http://www.kookaku.cn",
"http://kookaku.com",
"https://mallapi.oytour.com",
"https://mall.oytour.com"
"https://mall.oytour.com",
"https://edu.kookaku.com"
};
services.AddCors(options => options.AddPolicy("AllowCors", policy => policy.AllowAnyHeader().AllowAnyMethod().AllowCredentials().WithOrigins(corsArray.ToArray())));
......
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