取消manifest中管理员运行配置

This commit is contained in:
wule committed 2026-06-12 17:34:17 +08:00
1 parent 772d9f4780
commit 6040c88c6a
4 files changed
+14 -9

No files matched your search

+12 -7
View File
@@ -87,9 +87,14 @@ namespace _29WxOrder
settings.CefCommandLineArgs.Add("disable-gpu", "1"); settings.CefCommandLineArgs.Add("disable-gpu", "1");
settings.IgnoreCertificateErrors = true; settings.IgnoreCertificateErrors = true;
settings.Locale = "zh-CN"; settings.Locale = "zh-CN";
settings.LogSeverity = LogSeverity.Disable; #if DEBUG
Cef.Initialize(settings); settings.LogSeverity = LogSeverity.Verbose; // 设置日志级别
#endregion #else
settings.LogSeverity = LogSeverity.Disable;
#endif
settings.LogFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "cef_log.txt");
var rst = Cef.Initialize(settings);
#endregion
} }
void SetHideEvent(Control control) void SetHideEvent(Control control)
@@ -165,7 +170,7 @@ namespace _29WxOrder
}); });
SaveUserList(); SaveUserList();
} }
#region 设置UA #region 设置UA
string html = GetHtml.PostUtf8(BaseClass.UserAgentUrl, UserLogin.GetSignaturex()); string html = GetHtml.PostUtf8(BaseClass.UserAgentUrl, UserLogin.GetSignaturex());
if (!string.IsNullOrEmpty(html) && !html.Contains("error") && !html.StartsWith("测试网络正常,现在时间是")) if (!string.IsNullOrEmpty(html) && !html.Contains("error") && !html.StartsWith("测试网络正常,现在时间是"))
{ {
@@ -180,7 +185,7 @@ namespace _29WxOrder
{ {
BaseClass.ChromeUserAgent = xx.Trim(); BaseClass.ChromeUserAgent = xx.Trim();
} }
#endregion #endregion
this.DialogResult = DialogResult.OK; this.DialogResult = DialogResult.OK;
this.Dispose(); this.Dispose();
@@ -333,11 +338,11 @@ namespace _29WxOrder
public static void GetUserList() public static void GetUserList()
{ {
#region 用户账户记忆功能 #region 用户账户记忆功能
UserParamList = ConfigHelper.LoadConfig<ConcurrentList<UserParam>>("user_account_list"); UserParamList = ConfigHelper.LoadConfig<ConcurrentList<UserParam>>("user_account_list");
if (UserParamList == null) if (UserParamList == null)
UserParamList = new ConcurrentList<UserParam>(); UserParamList = new ConcurrentList<UserParam>();
#endregion #endregion
} }
private void panelEx2_Click(object sender, EventArgs e) private void panelEx2_Click(object sender, EventArgs e)
+1 -1
View File
@@ -15,7 +15,7 @@
如果你的应用程序需要此虚拟化来实现向后兼容性,则删除此 如果你的应用程序需要此虚拟化来实现向后兼容性,则删除此
元素。 元素。
--> -->
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> <!--<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />-->
</requestedPrivileges> </requestedPrivileges>
<applicationRequestMinimum> <applicationRequestMinimum>
<defaultAssemblyRequest permissionSetReference="Custom" /> <defaultAssemblyRequest permissionSetReference="Custom" />
+1 -1
View File
@@ -83,7 +83,7 @@
<HintPath>..\packages\SharpZipLib.1.3.1\lib\net45\ICSharpCode.SharpZipLib.dll</HintPath> <HintPath>..\packages\SharpZipLib.1.3.1\lib\net45\ICSharpCode.SharpZipLib.dll</HintPath>
</Reference> </Reference>
<Reference Include="NaiBa.Util"> <Reference Include="NaiBa.Util">
<HintPath>..\FindLittleRabbitOrder\DLL\NaiBa.Util.dll</HintPath> <HintPath>..\DllReference\NaiBa.Util.dll</HintPath>
</Reference> </Reference>
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> <Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath> <HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
Binary file not shown.