diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs
index 9a6fbb4..ee9e0fb 100644
--- a/AllBase/BaseClass.cs
+++ b/AllBase/BaseClass.cs
@@ -27,7 +27,7 @@ namespace AllBase
///
/// 版本ID
///
- public static int VersionCount = 1128;
+ public static int VersionCount = 1136;
public static string MainPath = "29wx";
//public static string MainPath = "29wx";
//public static string MainPath = "29pdd";
diff --git a/AllBase/Helper/GlobalConfig.cs b/AllBase/Helper/GlobalConfig.cs
index 8150f9f..674a0ab 100644
--- a/AllBase/Helper/GlobalConfig.cs
+++ b/AllBase/Helper/GlobalConfig.cs
@@ -25,6 +25,19 @@ namespace AllBase.Helper
/// 店铺列表
///
public static ConcurrentList ShopLoginList { get; set; } = new ConcurrentList();
+ public static ConcurrentList ValidShopLoginList
+ {
+ get
+ {
+ var list = new ConcurrentList();
+ list.AddRange(ShopLoginList.Where(s => !s.is_point_shop_expire));
+ return list;
+ }
+ }
+ ///
+ /// 微信小店用户拼多多机会商品采集的拼多多店铺列表
+ ///
+ public static ConcurrentList _29WxPddShopLoginList { get; set; } = new ConcurrentList();
///
/// 店铺默认地址
///
diff --git a/AllBase/Model/Param/WXParam/WXUploadProductParam.cs b/AllBase/Model/Param/WXParam/WXUploadProductParam.cs
index 5475825..c9dd9e3 100644
--- a/AllBase/Model/Param/WXParam/WXUploadProductParam.cs
+++ b/AllBase/Model/Param/WXParam/WXUploadProductParam.cs
@@ -454,8 +454,8 @@ namespace AllBase.Model.Param.WXParam
public int? payAfterUse { get; set; } = 0; // 1, 先用后付
public int? freightInsurance { get; set; } = 1; // 运费险
public int? fastRefund { get; set; } = 0; // 1 快速退款
- public int? damageGuarantee { get; set; } = 0;
- public int? fakeOnePayFour { get; set; } = 0;
+ public int? damageGuarantee { get; set; } = 0; // 坏损包退
+ public int? fakeOnePayFour { get; set; } = 0; // 假一赔四
public int? refundOrderTime { get; set; } = 0;
public int? deliverAfterCheck { get; set; } = 0;
public int? exchangeSupport { get; set; } = 1;
diff --git a/AllBase/Model/Result/ShopLoginInfo.cs b/AllBase/Model/Result/ShopLoginInfo.cs
index 1c34a38..c75fa88 100644
--- a/AllBase/Model/Result/ShopLoginInfo.cs
+++ b/AllBase/Model/Result/ShopLoginInfo.cs
@@ -205,6 +205,9 @@ namespace AllBase.Model.Result
///
public int? expire_time { get; set; }
+ ///
+ /// 充值店铺点数过期
+ ///
public bool is_point_shop_expire
{
//get
diff --git a/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs b/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs
index 3e52019..a992407 100644
--- a/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs
+++ b/KJDService/KJD_WebService/BLL/BXX/BXXProductManage.cs
@@ -595,6 +595,8 @@ namespace KJD_Web.BLL.BXX
var add_user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "add_user_name"))?.Replace("'", "\\'");
var min_view_uv = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "min_view_uv"))?.ParseToNullableInt();
var is_not_count = RegexUtils.GetStringQuery(ref inputData, "is_not_count").ParseToBool(); // 不计数
+ var no_fission_words = RegexUtils.GetStringQuery(ref inputData, "no_fission_words").ParseToBool(); // 未裂变标题
+ var fission_words = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "fission_words"))?.Replace("'", "\\'");
int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
int page_size= RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50);
@@ -764,7 +766,20 @@ namespace KJD_Web.BLL.BXX
add_user_name = "'" + string.Join("','", add_user_name.Split(new string[] { ",", ",", " " }, StringSplitOptions.RemoveEmptyEntries)) + "'";
where += " and p.add_user_name in (" + add_user_name + ")";
}
+ if (no_fission_words)
+ {
+ where += " and (fission_words='' or fission_words IS NULL)";
+ }
+ if (!string.IsNullOrEmpty(fission_words))
+ {
+ where += " and fission_words LIKE '" + fission_words + "%'";
+ }
sql += where;
+
+ if (sql.Contains("15288888888"))
+ {
+
+ }
var count = 0;
if (isDetail || is_not_count)
@@ -811,6 +826,12 @@ namespace KJD_Web.BLL.BXX
//where子句
sql += where;
+ if (sql.Contains("15288888888"))
+ {
+
+ }
+
+
if (!isDetail && !string.IsNullOrEmpty(get_select_count))
sql += " group by p.id";
if (sort_field == "select_total_count")
@@ -1554,6 +1575,8 @@ namespace KJD_Web.BLL.BXX
var ban_wx = RegexUtils.GetStringQuery(ref inputData, "ban_wx")?.Replace("'", "\\'");
var ban_pdd = RegexUtils.GetStringQuery(ref inputData, "ban_pdd")?.Replace("'", "\\'");
var add_user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "add_user_name"))?.Replace("'", "\\'");
+ var no_fission_words = RegexUtils.GetStringQuery(ref inputData, "no_fission_words").ParseToBool(); // 未裂变标题
+ var fission_words = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "fission_words"))?.Replace("'", "\\'");
int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
int page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50);
@@ -1650,6 +1673,14 @@ namespace KJD_Web.BLL.BXX
add_user_name = "'" + string.Join("','", add_user_name.Split(new string[] { ",", ",", " " }, StringSplitOptions.RemoveEmptyEntries)) + "'";
where += " and p.add_user_name in (" + add_user_name + ")";
}
+ if (no_fission_words)
+ {
+ where += " and (fission_words='' or fission_words IS NULL)";
+ }
+ if (!string.IsNullOrEmpty(fission_words))
+ {
+ where += " and fission_words LIKE '" + fission_words + "%'";
+ }
sql += where;
int count = prod_count;
@@ -1691,7 +1722,7 @@ namespace KJD_Web.BLL.BXX
var db_ids = string.Join(",", dt.Rows.Cast().Select(r => r["id"].ParseToInt()).OrderBy(x => RandomUtils.GetId(10000000)).Take(page_size));
sql = "SELECT p.id,p.from_shop_id,p.spu_id,p.skc_id,p.main_cat_id,p.main_cat_name,p.cat_id,p.cat_name,p.price_text,p.ext_code," +
- " p.product_name,p.main_img,p.group,p.notes,p.add_time,p.mdy_time,p.product_get_type," +
+ " p.product_name,p.main_img,p.group,p.notes,p.add_time,p.mdy_time,p.product_get_type,fission_words," +
" p.wx_safe_status,p.special_prod_type,p.wx_cat_1,p.wx_cat_2,p.wx_cat_3,p.send_to_out_server," +
" p.wx_cat_leaf,p.is_relation" +
" from bxx.product p where p.is_del=0";
@@ -1742,6 +1773,7 @@ namespace KJD_Web.BLL.BXX
special_prod_type = row["special_prod_type"].ParseToString(),
send_to_out_server = row["send_to_out_server"].ParseToInt(),
is_relation = row["is_relation"].ParseToInt(),
+ fission_words = row["fission_words"].ParseToString(),
};
productLst.Add(prod);
}
diff --git a/KJDService/KJD_WebService/BLL/WXXD/WXShopManage.cs b/KJDService/KJD_WebService/BLL/WXXD/WXShopManage.cs
index 89c4bc9..0afc495 100644
--- a/KJDService/KJD_WebService/BLL/WXXD/WXShopManage.cs
+++ b/KJDService/KJD_WebService/BLL/WXXD/WXShopManage.cs
@@ -1289,7 +1289,358 @@ namespace KJD_Web.BLL.WXXD
return "{\"code\":19999,\"msg\":\"输入为空\"}";
}
+ public string WXAddMdy29WxPddShop(string inputData, bool isAdmin = false)
+ {
+ if (!string.IsNullOrEmpty(inputData))
+ {
+ string user_name = RegexUtils.GetStringQuery(ref inputData, "user_name");
+ if (isAdmin)
+ user_name = RegexUtils.GetStringQuery(ref inputData, "shop_user_name");
+ string login_name = RegexUtils.GetStringQuery(ref inputData, "login_name");
+ string login_pass = RegexUtils.GetStringQuery(ref inputData, "login_pass");
+ string sub_user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sub_user_name"));
+ string cookie = RegexUtils.GetStringQuery(ref inputData, "cookie");
+ string cookie2 = RegexUtils.GetStringQuery(ref inputData, "cookie2");
+ string anti_contents = RegexUtils.GetStringQuery(ref inputData, "anti_contents");
+ string shop_id = RegexUtils.GetStringQuery(ref inputData, "shop_id");
+ string mall_id = RegexUtils.GetStringQuery(ref inputData, "mall_id");
+ string shop_account = RegexUtils.GetStringQuery(ref inputData, "shop_account");
+ string group_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "group_name"));
+ string notes = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "notes"));
+ int r2 = 0;
+ int.TryParse(RegexUtils.GetStringQuery(ref inputData, "r2"), out r2);
+ if (string.IsNullOrEmpty(user_name))
+ {
+ return "{\"code\":500,\"msg\":\"没有用户名\"}";
+ }
+ if (string.IsNullOrEmpty(login_name))
+ {
+ return "{\"code\":501,\"msg\":\"没有店铺登录名\"}";
+ }
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn);
+ string sql = "";
+ if (string.IsNullOrEmpty(shop_id))
+ sql = "select exists (select 1 from wxxd.pdd_shop where login_name='" + login_name + "' and user_name='" + user_name + "')";
+ else
+ sql = "select exists (select 1 from wxxd.pdd_shop where login_name='" + login_name + "' and user_name='" + user_name +
+ "' and shop_id='" + shop_id + "')";
+ var exist = mySql.ExecuteFirstInt(sql);
+ if (exist > 0)
+ {
+ mySql.Close();
+ //return "{\"code\":500,\"msg\":\"店铺" + login_name + " " + shop_account + "已存在\"}";
+ return WXMdy29WxPddShop(inputData);
+ }
+
+ sql = "insert into wxxd.pdd_shop (login_name,login_pass,cookie,cookie2,anti_contents,shop_account,shop_id," +
+ "mall_id,sub_user_name,user_name,group_name,notes,add_time,mdy_time) " +
+ "values ('" + login_name + "','" + login_pass + "','" + cookie + "','" + cookie2 + "','" + anti_contents + "','" + shop_account + "','" + shop_id +
+ "','" + mall_id + "','" + sub_user_name + "','" + user_name + "','" + group_name + "','" + notes + "','" +
+ DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "','" +
+ DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "');";
+ var rst = mySql.ExecuteNonQuery(sql);
+ mySql.Close();
+ if (rst)
+ {
+ return "{\"code\":200,\"msg\":\"success\"}";
+ }
+ }
+ return "{\"code\":19999,\"msg\":\"未知错误\"}";
+ }
+
+ public string WXMdy29WxPddShop(string inputData, bool isAdmin = false)
+ {
+ if (!string.IsNullOrEmpty(inputData))
+ {
+ string user_name = RegexUtils.GetStringQuery(ref inputData, "user_name");
+ if (isAdmin)
+ user_name = RegexUtils.GetStringQuery(ref inputData, "shop_user_name");
+ string login_name = RegexUtils.GetStringQuery(ref inputData, "login_name");
+ string login_pass = RegexUtils.GetStringQuery(ref inputData, "login_pass");
+ string sub_user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sub_user_name"));
+ //string cookie = RegexUtils.GetStringQuery(ref inputData, "cookie");
+ //string cookie2 = RegexUtils.GetStringQuery(ref inputData, "cookie2");
+ string anti_contents = RegexUtils.GetStringQuery(ref inputData, "anti_contents");
+ string new_shop_id = RegexUtils.GetStringQuery(ref inputData, "new_shop_id");
+ string old_shop_id = RegexUtils.GetStringQuery(ref inputData, "shop_id");
+ string mall_id = RegexUtils.GetStringQuery(ref inputData, "mall_id");
+ string shop_account = RegexUtils.GetStringQuery(ref inputData, "shop_account");
+ string group_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "group_name"));
+ string notes = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "notes"));
+ string login_status = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "login_status"));
+
+ int r2 = 0;
+ int.TryParse(RegexUtils.GetStringQuery(ref inputData, "r2"), out r2);
+
+ if (string.IsNullOrEmpty(user_name))
+ {
+ return "{\"code\":500,\"msg\":\"没有用户名\"}";
+ }
+ if (string.IsNullOrEmpty(login_name))
+ {
+ return "{\"code\":501,\"msg\":\"没有店铺登录名\"}";
+ }
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn);
+ string sql = "update wxxd.pdd_shop set";
+ if (login_pass != null)
+ sql += " login_pass='" + login_pass + "',";
+ //if (cookie != null)
+ // sql += " cookie='" + cookie + "',";
+ //if (cookie2 != null)
+ // sql += " cookie2='" + cookie2 + "',";
+ if (anti_contents != null)
+ sql += " anti_contents='" + anti_contents + "',";
+ if (new_shop_id != null)
+ sql += " shop_id='" + new_shop_id + "',";
+ if (mall_id != null)
+ sql += " mall_id='" + mall_id + "',";
+ if (shop_account != null)
+ sql += " shop_account='" + shop_account + "',";
+ if (sub_user_name != null)
+ sql += " sub_user_name='" + sub_user_name + "',";
+ if (group_name != null)
+ sql += " group_name='" + group_name + "',";
+ if (notes != null)
+ sql += " notes='" + notes + "',";
+ if (login_status != null)
+ sql += " login_status='" + login_status + "',";
+ sql = sql.TrimEnd(',');
+ sql += " where login_name='" + login_name + "' and (user_name='" + user_name + "' or sub_user_name like '%" + user_name + "%')";
+ if (!string.IsNullOrEmpty(old_shop_id))
+ sql += " and shop_id='" + old_shop_id + "'";
+
+ var rst = mySql.ExecuteNonQuery(sql);
+ mySql.Close();
+ if (rst)
+ {
+ return "{\"code\":200,\"msg\":\"success\"}";
+ }
+ }
+ return "{\"code\":19999,\"msg\":\"未知错误\"}";
+ }
+
+ public string WXMdy29WxPddCookieAndLoginStatus(string inputData)
+ {
+ if (!string.IsNullOrEmpty(inputData))
+ {
+ string login_name = RegexUtils.GetStringQuery(ref inputData, "login_name");
+ string cookie = RegexUtils.GetStringQuery(ref inputData, "cookie");
+ string cookie2 = RegexUtils.GetStringQuery(ref inputData, "cookie2");
+ string login_status = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "login_status"));
+ string login_status2 = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "login_status2"));
+ string pddid = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "pddid"));
+
+ int r2 = 0;
+ int.TryParse(RegexUtils.GetStringQuery(ref inputData, "r2"), out r2);
+
+ if (string.IsNullOrWhiteSpace(login_name))
+ {
+ return "{\"code\":500,\"msg\":\"店铺没有登录名\"}";
+ }
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn);
+ string sql = "update wxxd.pdd_shop set";
+ if (cookie != null)
+ sql += " cookie='" + cookie + "',";
+ if (cookie2 != null)
+ sql += " cookie2='" + cookie2 + "',";
+ if (login_status != null)
+ sql += " login_status='" + login_status + "',";
+ if (login_status2 != null)
+ sql += " login_status2='" + login_status2 + "',";
+ if (pddid != null)
+ sql += " pddid='" + pddid + "',";
+ sql = sql.TrimEnd(',');
+ sql += " where login_name='" + login_name + "'";
+
+ var rst = mySql.ExecuteNonQuery(sql);
+ mySql.Close();
+ if (rst)
+ {
+ return "{\"code\":200,\"msg\":\"success\"}";
+ }
+ }
+ return "{\"code\":19999,\"msg\":\"未知错误\"}";
+ }
+
+ public string WXDel29WxPddShop(string inputData, bool isAdmin = false)
+ {
+ if (!string.IsNullOrEmpty(inputData))
+ {
+ var login_name = RegexUtils.GetStringQuery(ref inputData, "login_name");
+ var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name");
+ if (isAdmin)
+ user_name = RegexUtils.GetStringQuery(ref inputData, "shop_user_name");
+ var shop_id = RegexUtils.GetStringQuery(ref inputData, "shop_id");
+ var password = RegexUtils.GetStringQuery(ref inputData, "password");
+ int r2 = 0;
+ int.TryParse(RegexUtils.GetStringQuery(ref inputData, "r2"), out r2);
+
+ if (string.IsNullOrEmpty(user_name))
+ {
+ return "{\"code\":500,\"msg\":\"没有用户名\"}";
+ }
+ if (string.IsNullOrEmpty(login_name))
+ {
+ return "{\"code\":501,\"msg\":\"没有店铺登录名\"}";
+ }
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn);
+ string sql = "delete from wxxd.pdd_shop where user_name='" + user_name + "' and login_name='" + login_name + "'";
+ if (!string.IsNullOrEmpty(shop_id))
+ sql += " and shop_id='" + shop_id + "'";
+
+ var rst = mySql.ExecuteNonQuery(sql);
+ mySql.Close();
+ if (rst)
+ {
+ return "{\"code\":200,\"msg\":\"success\"}";
+ }
+ }
+ return "{\"code\":19999,\"msg\":\"未知错误\"}";
+ }
+
+ public string WXGet29WxPddShop(string inputData, bool isAdmin = false)
+ {
+ if (!string.IsNullOrEmpty(inputData))
+ {
+ var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name");
+ var password = RegexUtils.GetStringQuery(ref inputData, "password");
+ var search_id = RegexUtils.GetStringQuery(ref inputData, "search_id");
+ var search_user_name = RegexUtils.GetStringQuery(ref inputData, "search_user_name");
+ var search_login_name = RegexUtils.GetStringQuery(ref inputData, "search_login_name");
+ var search_notes = RegexUtils.GetStringQuery(ref inputData, "search_notes");
+ var search_name = RegexUtils.GetStringQuery(ref inputData, "search_name");
+ var operate_sub_sa_name = RegexUtils.GetStringQuery(ref inputData, "operate_sub_sa_name")?.Replace("'", "\\'");
+
+ // 特殊处理一下修复客户端店铺导入没有立即登录导致的cookie串的bug
+ //var shop_ids = RegexUtils.GetStringQuery(ref inputData, "shop_ids")?.Replace("'", "");
+ var shop_ids = RegexUtils.GetStringQuery(ref inputData, "shop_ids");
+ if (shop_ids == "''")
+ shop_ids = "999999999999999";
+ shop_ids = shop_ids?.Replace("'", "");
+ if (!string.IsNullOrWhiteSpace(shop_ids))
+ {
+ List shopIdLst = shop_ids.Split(',').ToList();
+ shop_ids = "'" + string.Join("','", shopIdLst) + "'";
+ }
+ var shop_names = RegexUtils.GetStringQuery(ref inputData, "shop_names");
+ if (!string.IsNullOrWhiteSpace(shop_names))
+ {
+ List shopNameLst = shop_names.Split(',').ToList();
+ shop_names = "'" + string.Join("','", shopNameLst) + "'";
+ }
+ var shop_notes = RegexUtils.GetStringQuery(ref inputData, "shop_notes");
+ if (!string.IsNullOrWhiteSpace(shop_notes))
+ {
+ List shopNotesLst = shop_notes.Split(',').ToList();
+ shop_notes = "'" + string.Join("','", shopNotesLst) + "'";
+ }
+
+ var page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
+ var page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt();
+
+ if (page_size == 0)
+ page_size = 50;
+ int r2 = 0;
+ int.TryParse(RegexUtils.GetStringQuery(ref inputData, "r2"), out r2);
+
+ string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
+ MysqlUtils mySql = new MysqlUtils(conn);
+
+ string sql = "SELECT COUNT(s.id) FROM wxxd.pdd_shop s WHERE 1=1";
+
+ //where子句
+ string where = "";
+ if (isAdmin)
+ where += " and (s.cookie='' or s.shop_id!='')";
+ if (!isAdmin)
+ where += " and (s.user_name='" + user_name + "' or s.sub_user_name like '%" + user_name + "%')";
+ if (!string.IsNullOrWhiteSpace(operate_sub_sa_name))
+ where += " and s.operate_sub_sa_name='" + operate_sub_sa_name + "'";
+ if (!string.IsNullOrWhiteSpace(search_user_name))
+ where += " and s.user_name like '%" + search_user_name + "%'";
+ if (!string.IsNullOrWhiteSpace(search_login_name))
+ where += " and s.login_name like '%" + search_login_name + "%'";
+ if (!string.IsNullOrWhiteSpace(search_notes))
+ where += " and s.notes like '%" + search_notes + "%'";
+ if (!string.IsNullOrWhiteSpace(search_id))
+ where += " and s.shop_id like '%" + search_id + "%'";
+ if (!string.IsNullOrWhiteSpace(search_name))
+ where += " and s.shop_account like '%" + search_name + "%'";
+ if (!string.IsNullOrWhiteSpace(shop_ids))
+ where += " and s.shop_id in (" + shop_ids + ")";
+ if (!string.IsNullOrWhiteSpace(shop_names))
+ where += " and s.shop_account in (" + shop_names + ")";
+ if (!string.IsNullOrWhiteSpace(shop_notes))
+ where += " and s.notes in (" + shop_notes + ")";
+ sql += where;
+
+ var count = mySql.ExecuteRowCount(sql);
+
+ DataTable dt;
+ if (count == 0)
+ {
+ dt = new DataTable();
+ }
+ else
+ {
+ sql = "SELECT s.id,s.login_name,s.login_pass,s.cookie,s.cookie2,s.anti_contents,s.pddid,s.mall_id,s.shop_id,s.shop_account,s.sub_user_name," +
+ "s.user_name,s.company_name,s.notes,s.login_status,s.login_status2," +
+ "s.add_time,s.mdy_time,s.add_sub_sa_time,s.operate_sub_sa_name";
+ //sql += " FROM bxx.shop s WHERE 1=1";
+ sql += " FROM wxxd.pdd_shop s WHERE 1=1";
+
+ sql += where; // where 子句
+
+ sql += " ORDER BY s.id DESC";
+ sql += " LIMIT " + Math.Max(page - 1, 0) * page_size + "," + page_size;
+ dt = mySql.ExecuteDataTable(sql);
+ }
+
+ mySql.Close();
+ if (dt != null)
+ {
+ List shopList = new List();
+ foreach (DataRow row in dt.Rows)
+ {
+ ShopParam shop = new ShopParam
+ {
+ id = Convert.ToInt32(row["id"]),
+ login_name = row["login_name"].ToString(),
+ login_pass = row["login_pass"].ToString(),
+ cookie = row["cookie"].ToString(),
+ cookie2 = row["cookie2"].ToString(),
+ anti_contents = row["anti_contents"].ToString(),
+ shop_id = row["shop_id"].ToString(),
+ shop_account = row["shop_account"].ToString(),
+ sub_user_name = row["sub_user_name"].ToString(),
+ user_name = row["user_name"].ToString(),
+ company_name = row["company_name"].ToString(),
+ notes = row["notes"].ToString(),
+ login_status = row["login_status"].ToString(),
+ login_status2 = row["login_status2"].ToString(),
+ operate_sub_sa_name = row["operate_sub_sa_name"].ParseToString(),
+ pddid = row["pddid"].ParseToString(),
+ mall_id = row["mall_id"].ParseToString(),
+ };
+ shopList.Add(shop);
+ }
+
+ var data = JsonUtils.SerializeObjectToString(shopList);
+ //return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"c\":\"" + EncrypUtil.Encryption(r2) + "\"}";
+ return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"count\":" + count + "}";
+ }
+ }
+ return "{\"code\":19999,\"msg\":\"未知错误\"}";
+ }
public string E57GetWxTokens(string inputData)
{
diff --git a/KJDService/KJD_WebService/WXShopService.asmx.cs b/KJDService/KJD_WebService/WXShopService.asmx.cs
index ccef485..d9db445 100644
--- a/KJDService/KJD_WebService/WXShopService.asmx.cs
+++ b/KJDService/KJD_WebService/WXShopService.asmx.cs
@@ -422,6 +422,51 @@ namespace KJD_Web
Context.Response.End();
}
+ [WebMethod]
+ public void wx_add_mdy_29wx_pdd_shop()
+ {
+ string jsontext = GetRequestJsonString();
+
+ var result = jsontext;
+ result = new WXShopManage().WXAddMdy29WxPddShop(jsontext);
+
+ Context.Response.Write(result);
+ Context.Response.End();
+ }
+ [WebMethod]
+ public void wx_mdy_29wx_pdd_cookie_and_login_status()
+ {
+ string jsontext = GetRequestJsonString();
+
+ var result = jsontext;
+ result = new WXShopManage().WXMdy29WxPddCookieAndLoginStatus(jsontext);
+
+ Context.Response.Write(result);
+ Context.Response.End();
+ }
+ [WebMethod]
+ public void wx_del_29wx_pdd_shop()
+ {
+ string jsontext = GetRequestJsonString();
+
+ var result = jsontext;
+ result = new WXShopManage().WXDel29WxPddShop(jsontext);
+
+ Context.Response.Write(result);
+ Context.Response.End();
+ }
+ [WebMethod]
+ public void wx_get_29wx_pdd_shop()
+ {
+ string jsontext = GetRequestJsonString();
+
+ var result = jsontext;
+ result = new WXShopManage().WXGet29WxPddShop(jsontext);
+
+ Context.Response.Write(result);
+ Context.Response.End();
+ }
+
[WebMethod]
public void e57_get_wx_tokens()
{
diff --git a/TEMUKJD/BLL/WXHttpResponseBLL.cs b/TEMUKJD/BLL/WXHttpResponseBLL.cs
index fc784cd..5be6bed 100644
--- a/TEMUKJD/BLL/WXHttpResponseBLL.cs
+++ b/TEMUKJD/BLL/WXHttpResponseBLL.cs
@@ -413,6 +413,62 @@ namespace TemuKJD.BLL
return result;
}
+ public static string kdniaoPostResponse(string _url, string _data, string referer, string kdnAuth = null)
+ {
+ HttpWebResponse response = null;
+ string result;
+ try
+ {
+ HttpWebRequest request = (HttpWebRequest)WebRequest.Create(_url);
+
+ request.KeepAlive = true;
+ request.Headers.Add("sec-ch-ua-platform", @"""Windows""");
+ //request.Headers.Add("kdnAuth", @"62993d99a28947aaadd6b79427929562");
+ request.Headers.Add("kdnAuth", @"kdnAuth");
+ 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.Accept = "application/json, text/javascript, */*; q=0.01";
+ request.Headers.Add("sec-ch-ua", @"""Not)A;Brand"";v=""8"", ""Chromium"";v=""138""");
+ request.ContentType = "application/x-www-form-urlencoded";
+ request.Headers.Add("sec-ch-ua-mobile", @"?0");
+ request.Headers.Add("Origin", @"https://56.kdniao.com");
+ request.Headers.Set(HttpRequestHeader.AcceptLanguage, "zh-CN,zh;q=0.9");
+ request.Headers.Add("Sec-Fetch-Site", @"same-site");
+ request.Headers.Add("Sec-Fetch-Mode", @"cors");
+ request.Headers.Add("Sec-Fetch-Dest", @"empty");
+ request.Referer = referer;
+ request.Headers.Set(HttpRequestHeader.AcceptEncoding, "gzip, deflate");
+
+ request.Method = "POST";
+ request.ServicePoint.Expect100Continue = false;
+
+ string body = _data;
+ byte[] postBytes = System.Text.Encoding.UTF8.GetBytes(body);
+ request.ContentLength = postBytes.Length;
+ Stream stream = request.GetRequestStream();
+ stream.Write(postBytes, 0, postBytes.Length);
+ stream.Close();
+
+ response = (HttpWebResponse)request.GetResponse();
+ }
+ catch (WebException ex)
+ {
+ if (ex.Status == WebExceptionStatus.ProtocolError)
+ {
+ response = (HttpWebResponse)ex.Response;
+ result = GetProxyHtml.ReadResponse(response);
+ return result;
+ }
+ else return ex.Message;
+ }
+ catch (Exception e)
+ {
+ if (response != null) response.Close();
+ return e.Message;
+ }
+ result = GetProxyHtml.ReadResponse(response);
+ return result;
+ }
+
public static string e57PostResponse(string _url, string _data, string referer, string Authorization = null)
{
if (string.IsNullOrEmpty(Authorization))
diff --git a/TEMUKJD/Helper/CustomResourceRequestHandlerLocal.cs b/TEMUKJD/Helper/CustomResourceRequestHandlerLocal.cs
index 6987584..d1eade0 100644
--- a/TEMUKJD/Helper/CustomResourceRequestHandlerLocal.cs
+++ b/TEMUKJD/Helper/CustomResourceRequestHandlerLocal.cs
@@ -26,7 +26,7 @@ namespace TemuKJD.Helper
public Func