Commit 429d37e6 authored by 黄奎's avatar 黄奎

页面修改

parent af6a7a77
......@@ -436,5 +436,17 @@ namespace Edu.Common
return ReadConfigKey("ContractDefaultTitle");
}
}
/// <summary>
/// 是否推送消息
/// </summary>
public static int IsPushMessage
{
get
{
int.TryParse(ReadConfigKey("IsPushMessage"), out int IsPushMessage);
return IsPushMessage;
}
}
}
}
\ No newline at end of file
......@@ -198,7 +198,7 @@ namespace Edu.WebApi.Controllers.User
uploadConfig?.UploadDomain
};
}
if (Common.Config.IsOnline)
if (Common.Config.IsPushMessage==1)
{
for (var i = 0; i < 10; i++)
{
......
......@@ -41,6 +41,7 @@ namespace Edu.WebApi
"http://localhost:8081",
"http://localhost:8080",
"http://localhost:8181",
"http://localhost:8182",
"http://localhost:8082",
"http://127.0.0.1:50512",
"http://127.0.0.1:20224",
......
......@@ -58,5 +58,8 @@
//合同默认抬头
"ContractDefaultTitle": "JH-DZ-CD-",
//消息推送AppId
"PushAppId": "JiaHeJiaoYu"
"PushAppId": "JiaHeJiaoYu",
//是否推送消息
"IsPushMessage": "0"
}
\ 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