项目初始化后续改动
This commit is contained in:
1 parent
40c702883c
commit
42acf1b1cb
67 files changed
+5794
-1762
No files matched your search
@@ -10,14 +10,14 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>AllBase</RootNamespace>
|
||||
<AssemblyName>29WxOrderAllBase</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile>
|
||||
</TargetFrameworkProfile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>..\bin\</OutputPath>
|
||||
<OutputPath>..\..\KJD Cef138\Bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<DebugType>full</DebugType>
|
||||
@@ -35,7 +35,7 @@
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<OutputPath>..\bin\</OutputPath>
|
||||
<OutputPath>..\..\KJD Cef138\Bin\</OutputPath>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
@@ -54,7 +54,7 @@
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<OutputPath>..\..\KJD Cef138\Bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<DebugType>full</DebugType>
|
||||
@@ -85,9 +85,8 @@
|
||||
<Reference Include="NaiBa.Util">
|
||||
<HintPath>..\FindLittleRabbitOrder\DLL\NaiBa.Util.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\DllReference\Newtonsoft.Json.dll</HintPath>
|
||||
<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>
|
||||
</Reference>
|
||||
<Reference Include="NPOI, Version=2.5.4.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NPOI.2.5.4\lib\net45\NPOI.dll</HintPath>
|
||||
@@ -138,6 +137,7 @@
|
||||
<Compile Include="JsonHelper.cs" />
|
||||
<Compile Include="LogSave.cs" />
|
||||
<Compile Include="Md5Base.cs" />
|
||||
<Compile Include="Model\o_shop_info.cs" />
|
||||
<Compile Include="Model\PddMultiBuyerInfo.cs" />
|
||||
<Compile Include="Model\PddPifaShopInfo.cs" />
|
||||
<Compile Include="MultiThreadClient.cs" />
|
||||
|
||||
+24
-5
@@ -23,6 +23,8 @@ namespace AllBase
|
||||
|
||||
public static int VersionCount = 100;
|
||||
|
||||
public static string ServerUrl = "http://1.13.195.131:9000";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 版本号
|
||||
@@ -55,12 +57,13 @@ namespace AllBase
|
||||
/// </summary>
|
||||
public static int oem_version = 0;
|
||||
|
||||
public static string ProgramName = "小奶兔打单";
|
||||
public static string ProgramName = "29供应链-微信小店订单管理";
|
||||
public static string ProgromLogo = "";
|
||||
public static string ProgromLogoIco = "";
|
||||
public static string ToolName = "淘金猫";
|
||||
public static string ToolName = "29供应链-微信小店订单管理工具";
|
||||
public static string AgentName = "";
|
||||
public static string MainPath = "douyin";
|
||||
//public static string MainPath = "douyin";
|
||||
public static string MainPath = "29wx";
|
||||
public static string ServiceQQ = "569588500";
|
||||
public static Image LoginImage = null;
|
||||
public static Image LogoImage = null;
|
||||
@@ -102,7 +105,7 @@ namespace AllBase
|
||||
|
||||
public static Dictionary<string, string> serverDic = new Dictionary<string, string>();//存放服务地址
|
||||
|
||||
public static string ServerUrl = "http://psbx.9u99.com/index.php?s=/";
|
||||
//public static string ServerUrl = "http://psbx.9u99.com/index.php?s=/";
|
||||
public static string PXServerUrl = "http://px.jindouduo.com/";//螃蟹工具
|
||||
public static string NbAssistantUrl = "http://nbzlw.e57.cn/";//奶爸助理
|
||||
|
||||
@@ -213,8 +216,9 @@ namespace AllBase
|
||||
/// <summary>
|
||||
/// 图片API
|
||||
/// </summary>
|
||||
public static string LoginApiUrl = ServerUrl;
|
||||
public static string ImageApiUrl = "https://new.qixiaoke.com/index.php?obj=api/image";
|
||||
public static string LoginApiUrl = "http://order.qixiaoke.com/";//"http://192.168.8.9:8080/";
|
||||
//public static string LoginApiUrl = "http://order.qixiaoke.com/";//"http://192.168.8.9:8080/";
|
||||
//public static string LoginApiUrl = "http://127.0.0.1:81/";
|
||||
public static string BigDataApiUrl = "http://bigdata.qixiaoke.com/";
|
||||
public static string UserAgentUrl = LoginApiUrl + "userAgent.php";
|
||||
@@ -565,6 +569,14 @@ namespace AllBase
|
||||
public static int DataUpdateThread = 0;
|
||||
|
||||
public static string PassWordBak { get; set; }
|
||||
public static int Points { get; set; }
|
||||
public static int ShopPointsPerMonth { get; set; }
|
||||
public static string Mobile { get; set; }
|
||||
public static string ParentAuthority { get; set; }
|
||||
public static string UserAuthority { get; set; }
|
||||
public static string ParentUserName { get; set; }
|
||||
public static int SaLevel { get; set; }
|
||||
public static bool IsLoginSuccess { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CPU使用率更新线程
|
||||
@@ -794,10 +806,17 @@ namespace AllBase
|
||||
return LoginApiUrl + "index.php?obj=findgoldcat_main/" + file;
|
||||
return LoginApiUrl + "index.php?obj=findgoldcat/" + file;
|
||||
}
|
||||
|
||||
public static string DouYinBuildObjString(string file)
|
||||
{
|
||||
return LoginApiUrl + "index.php?obj=" + BaseClass.MainPath + "/" + file;
|
||||
}
|
||||
|
||||
public static string Build29WxObjString(string file, bool IsLoginDef = false)
|
||||
{
|
||||
return LoginApiUrl + "/wxxd_" + file + "?obj=" + BaseClass.MainPath + "/wxxd_" + file;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回固定字节长度
|
||||
/// </summary>
|
||||
|
||||
@@ -529,6 +529,23 @@ namespace AllBase
|
||||
return i;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取值
|
||||
/// </summary>
|
||||
/// <param name="html"></param>
|
||||
/// <param name="reg"></param>
|
||||
/// <returns></returns>
|
||||
public static decimal? GetNullableDecimalJson(ref string html, string reg)
|
||||
{
|
||||
string temp = GetMatchRegexString(html, @"['""]" + reg + @"['""][\s]*:[\s]*['""]([^']+?)['""]");
|
||||
if (string.IsNullOrEmpty(temp))
|
||||
temp = GetMatchRegexString(html, @"['""]" + reg + @"['""][\s]*:[\s]*([\d-\.]+)");
|
||||
decimal i = 0;
|
||||
if (decimal.TryParse(temp, out i))
|
||||
return i;
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取值
|
||||
|
||||
@@ -22,5 +22,21 @@ namespace AllBase.Helper
|
||||
/// 拼多多 多买手拍单 账户列表
|
||||
/// </summary>
|
||||
public static List<PddMultiBuyerInfo> LstMultiBuyer = new List<PddMultiBuyerInfo>();
|
||||
|
||||
public static System.Drawing.Color DefaultMainColor { get; set; } = System.Drawing.Color.FromArgb(63, 126, 255);
|
||||
public static System.Drawing.Color DefaultMainColorLight { get; set; } = System.Drawing.Color.FromArgb(185, 215, 255);
|
||||
public static System.Drawing.Color DefaultBorderColor { get; set; } = System.Drawing.Color.FromArgb(25, 98, 200);
|
||||
|
||||
public static System.Drawing.Color MainColor { get; set; } = System.Drawing.Color.FromArgb(63, 126, 255);
|
||||
public static System.Drawing.Color MainColorLight { get; set; } = System.Drawing.Color.FromArgb(185, 215, 255);
|
||||
public static System.Drawing.Color BorderColor { get; set; } = System.Drawing.Color.FromArgb(25, 98, 200);
|
||||
|
||||
public static System.Drawing.Color PddMainColor { get; set; } = System.Drawing.Color.FromArgb(225, 120, 135);
|
||||
public static System.Drawing.Color PddMainColorLight { get; set; } = System.Drawing.Color.FromArgb(255, 235, 245);
|
||||
public static System.Drawing.Color PddBorderColor { get; set; } = System.Drawing.Color.FromArgb(195, 112, 135);
|
||||
|
||||
public static System.Drawing.Color WeiXinMainColor { get; set; } = System.Drawing.Color.FromArgb(152, 99, 143);
|
||||
public static System.Drawing.Color WeiXinMainColorLight { get; set; } = System.Drawing.Color.FromArgb(245, 235, 255);
|
||||
public static System.Drawing.Color WeiXinBorderColor { get; set; } = System.Drawing.Color.FromArgb(107, 83, 147);
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,7 @@ namespace AllBase.Helper
|
||||
request.Headers.Add("sec-ch-ua", @"""Chromium"";v=""104"", "" Not A;Brand"";v=""99"", ""Google Chrome"";v=""104""");
|
||||
request.Headers.Add("AccessToken", BaseRegex.GetMatchRegexString(ref cookie, "PDDAccessToken=([^:]+?);"));
|
||||
request.Headers.Add("sec-ch-ua-mobile", @"?0");
|
||||
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36";
|
||||
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36";
|
||||
request.ContentType = "application/json;charset=UTF-8";
|
||||
request.Accept = "application/json, text/plain, */*";
|
||||
request.Headers.Add("sec-ch-ua-platform", @"""Windows""");
|
||||
@@ -113,7 +113,7 @@ namespace AllBase.Helper
|
||||
request.KeepAlive = true;
|
||||
request.Headers.Set(HttpRequestHeader.CacheControl, "max-age=0");
|
||||
request.Headers.Add("sec-ch-ua", @"""Chromium"";v=""104"", "" Not A;Brand"";v=""99"", ""Google Chrome"";v=""104""");
|
||||
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36";
|
||||
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36";
|
||||
if (!string.IsNullOrEmpty(cookies) && cookies.Contains("PDDAccessToken"))
|
||||
{
|
||||
request.Headers.Add("AccessToken", BaseRegex.GetMatchRegexString(ref cookies, "PDDAccessToken=([^:]+?);"));
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AllBase.Model
|
||||
{
|
||||
public class o_shop_info
|
||||
{
|
||||
public long id { get; set; }
|
||||
public string name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net452" />
|
||||
<package id="NPOI" version="2.5.4" targetFramework="net452" />
|
||||
<package id="Portable.BouncyCastle" version="1.8.6" targetFramework="net452" />
|
||||
<package id="SharpZipLib" version="1.3.1" targetFramework="net452" />
|
||||
|
||||
Reference in new issue
Block a user