1上传草稿箱接口改用国际版 2配套相关登录、cookie保存、导出、导入等功能
This commit is contained in:
1 parent
c032747651
commit
096e1a450d
20 files changed
+825
-249
No files matched your search
@@ -25,6 +25,12 @@ namespace KJD_Web.BLL
|
||||
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("'", "\\'");
|
||||
var shop_ids = RegexUtils.GetStringQuery(ref inputData, "shop_ids")?.Replace("'", "");
|
||||
if (shop_ids != null)
|
||||
{
|
||||
List<string> shopIdLst = shop_ids.Split(',').ToList();
|
||||
shop_ids = "'" + string.Join("','", shopIdLst) + "'";
|
||||
}
|
||||
|
||||
var page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
|
||||
var page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt();
|
||||
@@ -57,6 +63,8 @@ namespace KJD_Web.BLL
|
||||
where += " and shop_id like '%" + search_id + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(search_name))
|
||||
where += " and shop_account like '%" + search_name + "%'";
|
||||
if (!string.IsNullOrWhiteSpace(shop_ids))
|
||||
where += " and shop_id in (" + shop_ids + ")";
|
||||
sql += where;
|
||||
|
||||
var count = mySql.ExecuteRowCount(sql);
|
||||
@@ -69,7 +77,7 @@ namespace KJD_Web.BLL
|
||||
else
|
||||
{
|
||||
sql = "select id,login_name,login_pass,cookie,cookie2,shop_id,shop_account,sub_user_name,user_name,company_name,notes,login_status," +
|
||||
" add_product_remaining,add_product_month,add_time,mdy_time,add_sub_sa_time,operate_sub_sa_name" +
|
||||
" login_status2,add_product_remaining,add_product_month,add_time,mdy_time,add_sub_sa_time,operate_sub_sa_name" +
|
||||
" from kjd.shop where 1=1";
|
||||
|
||||
sql += where; // where 子句
|
||||
@@ -99,6 +107,7 @@ namespace KJD_Web.BLL
|
||||
company_name = row["company_name"].ToString(),
|
||||
notes = row["notes"].ToString(),
|
||||
login_status = row["login_status"].ToString(),
|
||||
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,
|
||||
@@ -366,6 +375,7 @@ namespace KJD_Web.BLL
|
||||
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"));
|
||||
|
||||
int r2 = 0;
|
||||
int.TryParse(RegexUtils.GetStringQuery(ref inputData, "r2"), out r2);
|
||||
@@ -384,6 +394,8 @@ namespace KJD_Web.BLL
|
||||
sql += " cookie2='" + cookie2 + "',";
|
||||
if (login_status != null)
|
||||
sql += " login_status='" + login_status + "',";
|
||||
if (login_status2 != null)
|
||||
sql += " login_status2='" + login_status2 + "',";
|
||||
sql = sql.TrimEnd(',');
|
||||
sql += " where login_name='" + login_name + "'";
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ namespace KJD_Web.Model.ShopModel
|
||||
/// </summary>
|
||||
public string notes { get; set; }
|
||||
public string login_status { get; set; }
|
||||
public string login_status2 { get; set; }
|
||||
public int add_product_remaining { get; set; }
|
||||
public int add_product_month { get; set; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user