广告直通车功能 2修复活动勾选问题 3加入发货台功能完成20%
This commit is contained in:
1 parent
a6b36c64b0
commit
e2b37df00b
35 files changed
+6832
-236
No files matched your search
@@ -309,7 +309,7 @@ namespace KJD_Web.BLL.BXX
|
||||
login_status2 = row["login_status2"].ToString(),
|
||||
add_product_remaining = row["add_product_remaining"].ParseToInt(),
|
||||
add_product_month = row["add_product_month"].ParseToInt(),
|
||||
operate_sub_sa_name = row["operate_sub_sa_name"] as string,
|
||||
operate_sub_sa_name = row["operate_sub_sa_name"].ParseToString(),
|
||||
|
||||
};
|
||||
shopList.Add(shop);
|
||||
|
||||
@@ -94,11 +94,7 @@ namespace KJD_Web.BLL
|
||||
}
|
||||
else
|
||||
{
|
||||
sql = "SELECT s.id,s.login_name,s.login_pass,s.cookie,s.cookie2,s.shop_id,s.shop_account,s.sub_user_name,s.user_name," +
|
||||
"s.company_name,s.notes,s.login_status,s.login_status2,c.add_product_remaining,c.add_product_month,s.add_time,s.mdy_time," +
|
||||
"s.add_sub_sa_time,s.operate_sub_sa_name";
|
||||
//sql += " FROM kjd.shop s WHERE 1=1";
|
||||
sql += " FROM kjd.shop s LEFT JOIN kjd.shop_add_prod_count c ON s.shop_id=c.shop_id WHERE 1=1";
|
||||
sql = "SELECT s.* FROM kjd.shop s LEFT JOIN kjd.shop_add_prod_count c ON s.shop_id=c.shop_id WHERE 1=1";
|
||||
|
||||
sql += where; // where 子句
|
||||
|
||||
@@ -130,8 +126,11 @@ namespace KJD_Web.BLL
|
||||
login_status2 = row["login_status2"].ToString(),
|
||||
add_product_remaining = row["add_product_remaining"].ParseToInt(),
|
||||
add_product_month = row["add_product_month"].ParseToInt(),
|
||||
operate_sub_sa_name = row["operate_sub_sa_name"] as string,
|
||||
|
||||
operate_sub_sa_name = row["operate_sub_sa_name"].ParseToString(),
|
||||
ad_cookie = row["ad_cookie"].ParseToString(),
|
||||
ad_login_status = row["ad_login_status"].ParseToString(),
|
||||
ad_seller_unique_id = row["ad_seller_unique_id"].ParseToString(),
|
||||
ad_url = row["ad_url"].ParseToString(),
|
||||
};
|
||||
shopList.Add(shop);
|
||||
}
|
||||
@@ -272,10 +271,7 @@ namespace KJD_Web.BLL
|
||||
}
|
||||
else
|
||||
{
|
||||
sql = "SELECT s.id,s.login_name,s.login_pass,s.cookie,s.cookie2,s.shop_id,s.shop_account,s.sub_user_name,s.user_name," +
|
||||
"s.company_name,s.notes,s.login_status,s.login_status2,c.add_product_remaining,c.add_product_month,s.add_time,s.mdy_time," +
|
||||
"s.add_sub_sa_time,s.operate_sub_sa_name";
|
||||
sql += " FROM kjd.shop s LEFT JOIN kjd.shop_add_prod_count c ON s.shop_id=c.shop_id WHERE 1=1";
|
||||
sql = "SELECT s.* FROM kjd.shop s LEFT JOIN kjd.shop_add_prod_count c ON s.shop_id=c.shop_id WHERE 1=1";
|
||||
|
||||
sql += where; // where 子句
|
||||
|
||||
@@ -307,8 +303,11 @@ namespace KJD_Web.BLL
|
||||
login_status2 = row["login_status2"].ToString(),
|
||||
add_product_remaining = row["add_product_remaining"].ParseToInt(),
|
||||
add_product_month = row["add_product_month"].ParseToInt(),
|
||||
operate_sub_sa_name = row["operate_sub_sa_name"] as string,
|
||||
|
||||
operate_sub_sa_name = row["operate_sub_sa_name"].ParseToString(),
|
||||
ad_cookie = row["ad_cookie"].ParseToString(),
|
||||
ad_login_status = row["ad_login_status"].ParseToString(),
|
||||
ad_seller_unique_id = row["ad_seller_unique_id"].ParseToString(),
|
||||
ad_url = row["ad_url"].ParseToString(),
|
||||
};
|
||||
shopList.Add(shop);
|
||||
}
|
||||
@@ -674,6 +673,47 @@ namespace KJD_Web.BLL
|
||||
return "{\"code\":19999,\"msg\":\"未知错误\"}";
|
||||
}
|
||||
|
||||
public string MdyAdsCookieAndLoginStatus(string inputData)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
string shop_id = RegexUtils.GetStringQuery(ref inputData, "shop_id");
|
||||
string ad_url = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "ad_url"));
|
||||
string ad_seller_unique_id = RegexUtils.GetStringQuery(ref inputData, "ad_seller_unique_id");
|
||||
string ad_login_status = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "ad_login_status"));
|
||||
string ad_cookie = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "ad_cookie"));
|
||||
|
||||
int r2 = 0;
|
||||
int.TryParse(RegexUtils.GetStringQuery(ref inputData, "r2"), out r2);
|
||||
|
||||
if (string.IsNullOrEmpty(shop_id))
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"店铺没有登录名\"}";
|
||||
}
|
||||
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
string sql = "update kjd.shop set";
|
||||
if (ad_url != null)
|
||||
sql += " ad_url='" + ad_url + "',";
|
||||
if (ad_seller_unique_id != null)
|
||||
sql += " ad_seller_unique_id='" + ad_seller_unique_id + "',";
|
||||
if (ad_login_status != null)
|
||||
sql += " ad_login_status='" + ad_login_status + "',";
|
||||
if (ad_cookie != null)
|
||||
sql += " ad_cookie='" + ad_cookie + "',";
|
||||
sql = sql.TrimEnd(',');
|
||||
sql += " where shop_id='" + shop_id + "'";
|
||||
|
||||
var rst = mySql.ExecuteNonQuery(sql);
|
||||
mySql.Close();
|
||||
if (rst)
|
||||
{
|
||||
return "{\"code\":200,\"msg\":\"success\"}";
|
||||
}
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"未知错误\"}";
|
||||
}
|
||||
|
||||
public string DelShop(string inputData, bool isAdmin=false)
|
||||
{
|
||||
|
||||
@@ -12,7 +12,13 @@ namespace KJD_Web.Model.ShopModel
|
||||
public string login_pass { get; set; }
|
||||
public string cookie { get; set; }
|
||||
public string cookie2 { get; set; }
|
||||
/// <summary>
|
||||
/// 拼多多AntiContents
|
||||
/// </summary>
|
||||
public string anti_contents { get; set; }
|
||||
/// <summary>
|
||||
/// 拼多多Id
|
||||
/// </summary>
|
||||
public string pddid { get; set; }
|
||||
public string shop_id { get; set; }
|
||||
public string shop_account { get; set; }
|
||||
@@ -29,5 +35,22 @@ namespace KJD_Web.Model.ShopModel
|
||||
public int add_product_month { get; set; }
|
||||
|
||||
public string operate_sub_sa_name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// temu推广直通车用户Id
|
||||
/// </summary>
|
||||
public string ad_seller_unique_id { get; set; }
|
||||
/// <summary>
|
||||
/// temu推广直通车链接地址(含信息)
|
||||
/// </summary>
|
||||
public string ad_url { get; set; }
|
||||
/// <summary>
|
||||
/// temu推广直通车cookie
|
||||
/// </summary>
|
||||
public string ad_cookie { get; set; }
|
||||
/// <summary>
|
||||
/// temu推广直通车登录状态
|
||||
/// </summary>
|
||||
public string ad_login_status { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -120,6 +120,19 @@ namespace KJD_Web
|
||||
Context.Response.End();
|
||||
}
|
||||
|
||||
|
||||
[WebMethod]
|
||||
public void mdy_shop_ads_cookie_and_login_status()
|
||||
{
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = new ShopManage().MdyAdsCookieAndLoginStatus(jsontext);
|
||||
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public void admin_get_shop_list()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user