店铺考核提供备注功能 微信带货助手采集功能
This commit is contained in:
1 parent
4fa1fc03ca
commit
119b2f4f3e
64 files changed
+7940
-908
No files matched your search
@@ -13,6 +13,7 @@ using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Threading;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
@@ -57,11 +58,17 @@ namespace KJD_Web.BLL.BXX
|
||||
string sale_count = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sale_count"))?.Replace("'", "\\'");
|
||||
string sale_count_text = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sale_count_text"))?.Replace("'", "\\'");
|
||||
string distribution_set = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "distribution_set"))?.Replace("'", "\\'");
|
||||
string special_prod_type = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "special_prod_type"))?.Replace("'", "\\'");
|
||||
if (special_prod_type != "爆款商品")
|
||||
special_prod_type = "普通商品";
|
||||
string add_user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "add_user_name"))?.Replace("'", "\\'");
|
||||
|
||||
string special_prod_type = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "special_prod_type"))?.Replace("'", "\\'");
|
||||
if (special_prod_type != "爆款数据")
|
||||
special_prod_type = "普通商品";
|
||||
string view_uv = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "view_uv"))?.Replace("'", "\\'"); // 爆款数据产品曝光数量
|
||||
string add_hot_version = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "add_hot_version"))?.Replace("'", "\\'");
|
||||
if (special_prod_type == "爆款数据" && product_get_type == "微信店采" && add_hot_version != "v3")
|
||||
{
|
||||
return "{\"code\":666,\"msg\":\"当前版本已失效,请更新软件\"}";
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(product_get_type))
|
||||
{
|
||||
product_get_type = "母店采集";
|
||||
@@ -105,6 +112,8 @@ namespace KJD_Web.BLL.BXX
|
||||
sql += "add_user_name,";
|
||||
if (group != null)
|
||||
sql += "`group`,";
|
||||
if (!string.IsNullOrWhiteSpace(view_uv))
|
||||
sql += "view_uv,";
|
||||
sql = sql.TrimEnd(',');
|
||||
sql += ") ";
|
||||
sql += "values ('" + from_shop_id + "','" + from_shop_name + "','" + offline_supplier_id + "','" + offline_supplier_name + "','" + spu_id + "','" +
|
||||
@@ -117,6 +126,8 @@ namespace KJD_Web.BLL.BXX
|
||||
sql += "'" + add_user_name + "',";
|
||||
if (group != null)
|
||||
sql += "'" + group + "',";
|
||||
if (!string.IsNullOrWhiteSpace(view_uv))
|
||||
sql += "" + view_uv + ",";
|
||||
sql = sql.TrimEnd(',');
|
||||
sql += ");";
|
||||
|
||||
@@ -173,7 +184,7 @@ namespace KJD_Web.BLL.BXX
|
||||
string sale_count_text = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sale_count_text"))?.Replace("'", "\\'");
|
||||
string wx_safe_status = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "wx_safe_status"))?.Replace("'", "\\'");
|
||||
string special_prod_type = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "special_prod_type"))?.Replace("'", "\\'");
|
||||
if (!string.IsNullOrEmpty(special_prod_type) && special_prod_type != "爆款商品")
|
||||
if (!string.IsNullOrEmpty(special_prod_type) && special_prod_type != "爆款数据")
|
||||
special_prod_type = "普通商品";
|
||||
string wx_cat_1 = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "wx_cat_1"))?.Replace("'", "\\'");
|
||||
string wx_cat_2 = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "wx_cat_2"))?.Replace("'", "\\'");
|
||||
@@ -188,6 +199,13 @@ namespace KJD_Web.BLL.BXX
|
||||
string wx_img_map_json = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "wx_img_map_json"))?.Replace("'", "\\'");
|
||||
string problem_prod_data = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "problem_prod_data"))?.Replace("'", "\\'");
|
||||
string is_relation = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "is_relation"))?.Replace("'", "\\'");
|
||||
string view_uv = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "view_uv"))?.Replace("'", "\\'"); // 产品曝光数量
|
||||
string product_get_type = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "product_get_type"))?.Replace("'", "\\'");
|
||||
string add_hot_version = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "add_hot_version"))?.Replace("'", "\\'");
|
||||
if (special_prod_type == "爆款数据" && product_get_type == "微信店采" && add_hot_version != "v3")
|
||||
{
|
||||
return "{\"code\":666,\"msg\":\"当前版本已失效,请更新软件\"}";
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(user_name))
|
||||
{
|
||||
@@ -267,6 +285,8 @@ namespace KJD_Web.BLL.BXX
|
||||
sql += " p.problem_prod_data=" + problem_prod_data + ",";
|
||||
if (!is_relation.IsNullOrEmpty())
|
||||
sql += " p.is_relation=" + is_relation + ",";
|
||||
if (!string.IsNullOrWhiteSpace(view_uv))
|
||||
sql += " p.view_uv=" + view_uv + ",";
|
||||
sql += " p.mdy_time='" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "',";
|
||||
sql = sql.TrimEnd(',');
|
||||
sql += " where spu_id='" + spu_id + "';";
|
||||
@@ -491,12 +511,13 @@ namespace KJD_Web.BLL.BXX
|
||||
var wx_cat_3 = RegexUtils.GetStringQuery(ref inputData, "wx_cat_3")?.Replace("'", "\\'");
|
||||
var wx_cat_leaf = RegexUtils.GetStringQuery(ref inputData, "wx_cat_leaf")?.Replace("'", "\\'");
|
||||
var search_ext_code = RegexUtils.GetStringQuery(ref inputData, "search_ext_code")?.Replace("'", "\\'");
|
||||
var search_prod_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "search_prod_name")?.Replace("'", "\\'"));
|
||||
var search_prod_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "search_prod_name"))?.Replace("'", "\\'");
|
||||
var search_prod_name_in = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "search_prod_name_in"))?.Replace("'", "\\'");
|
||||
var search_group = RegexUtils.GetStringQuery(ref inputData, "search_group")?.Replace("'", "\\'");
|
||||
var search_notes = RegexUtils.GetStringQuery(ref inputData, "search_notes")?.Replace("'", "\\'");
|
||||
var search_db_ids = RegexUtils.GetStringQuery(ref inputData, "search_db_ids")?.Replace("'", "\\'");
|
||||
var search_secret_spu_ids = RegexUtils.GetStringQuery(ref inputData, "search_secret_spu_ids")?.Replace("'", "\\'");
|
||||
var ext_code_in = RegexUtils.GetStringQuery(ref inputData, "ext_code_in")?.Replace("'", "\\'");
|
||||
var ext_code_in = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "ext_code_in"))?.Replace("'", "\\'");
|
||||
var get_select_count = RegexUtils.GetStringQuery(ref inputData, "get_select_count")?.Replace("'", "\\'");
|
||||
var select_shop_id = RegexUtils.GetStringQuery(ref inputData, "select_shop_id")?.Replace("'", "\\'");
|
||||
var from_shop_id = RegexUtils.GetStringQuery(ref inputData, "from_shop_id")?.Replace("'", "\\'");
|
||||
@@ -520,6 +541,7 @@ 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 is_not_count = RegexUtils.GetStringQuery(ref inputData, "is_not_count").ParseToBool(); // 不计数
|
||||
|
||||
int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
|
||||
int page_size= RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50);
|
||||
@@ -598,6 +620,10 @@ namespace KJD_Web.BLL.BXX
|
||||
}
|
||||
where += " and (" + multi_search_prod_name.Substring(4) + ")";
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(search_prod_name_in))
|
||||
{
|
||||
where += " and p.product_name in ('" + search_prod_name_in.Replace(",", "','") + "')";
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(search_group))
|
||||
{
|
||||
if (search_group == "无分组")
|
||||
@@ -684,7 +710,7 @@ namespace KJD_Web.BLL.BXX
|
||||
sql += where;
|
||||
|
||||
var count = 0;
|
||||
if (isDetail)
|
||||
if (isDetail || is_not_count)
|
||||
count = 1;
|
||||
else
|
||||
count = mySql.ExecuteRowCount(sql, paramLst.ToArray());
|
||||
@@ -706,7 +732,7 @@ namespace KJD_Web.BLL.BXX
|
||||
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.notes,p.add_time,p.mdy_time,p.select_total_count,p.fission_words,p.head_words,p.end_words,p.sku_img_replace_id,p.group," +
|
||||
" p.product_get_type,p.wx_safe_status,p.sale_count,p.sale_count_text,p.special_prod_type,p.from_shop_name,p.wx_cat_1,p.wx_cat_2,p.wx_cat_3," +
|
||||
" p.wx_cat_leaf,p.send_to_out_server,p.secret_spu_id,p.real_coid,p.real_spu_id,p.is_relation," +
|
||||
" p.wx_cat_leaf,p.send_to_out_server,p.secret_spu_id,p.real_coid,p.real_spu_id,p.is_relation,p.view_uv," +
|
||||
" s.img_url,e.ext_code_price" +
|
||||
" FROM bxx.product p " +
|
||||
" LEFT JOIN bxx.sku_img_replace s ON p.sku_img_replace_id=s.id" +
|
||||
@@ -717,7 +743,7 @@ namespace KJD_Web.BLL.BXX
|
||||
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.notes,p.add_time,p.mdy_time,p.select_total_count,p.fission_words,p.head_words,p.end_words,p.sku_img_replace_id,p.group," +
|
||||
" p.product_get_type,p.wx_safe_status,p.sale_count,p.sale_count_text,p.special_prod_type,p.from_shop_name,p.wx_cat_1,p.wx_cat_2,p.wx_cat_3," +
|
||||
" p.wx_cat_leaf,p.send_to_out_server,p.secret_spu_id,p.real_coid,p.real_spu_id,p.is_relation," +
|
||||
" p.wx_cat_leaf,p.send_to_out_server,p.secret_spu_id,p.real_coid,p.real_spu_id,p.is_relation,p.view_uv" +
|
||||
" s.img_url,COUNT(se.id) AS select_count,e.ext_code_price" +
|
||||
" FROM bxx.product p" +
|
||||
" LEFT JOIN bxx.sku_img_replace s ON p.sku_img_replace_id=s.id LEFT JOIN bxx.product_select se ON p.id=se.out_product_id AND se.shop_id='" + select_shop_id + "' " +
|
||||
@@ -732,6 +758,8 @@ namespace KJD_Web.BLL.BXX
|
||||
sql += " group by p.id";
|
||||
if (sort_field == "select_total_count")
|
||||
sql += " order by p.select_total_count desc, p.id desc";
|
||||
else if (sort_field == "view_uv")
|
||||
sql += " order by p.view_uv desc, p.id desc";
|
||||
else
|
||||
sql += " order by p.id desc";
|
||||
sql += " limit " + Math.Max(page - 1, 0) * page_size + "," + page_size;
|
||||
@@ -779,6 +807,7 @@ namespace KJD_Web.BLL.BXX
|
||||
sku_img_replace_id = row["sku_img_replace_id"].ParseToInt(),
|
||||
sku_img_replace_url = row["img_url"].ToString(),
|
||||
product_get_type_text = row["product_get_type"].ToString(),
|
||||
view_uv = row["view_uv"].ParseToNullableInt(),
|
||||
sale_count = row["sale_count"].ParseToInt(),
|
||||
sale_count_text = row["sale_count_text"].ToString(),
|
||||
wx_safe_status = row["wx_safe_status"].ToString(),
|
||||
@@ -831,6 +860,8 @@ namespace KJD_Web.BLL.BXX
|
||||
JsonSerializerSettings jsonSetting = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore };
|
||||
var data = JsonUtils.SerializeObjectToString(productLst, jsonSetting);
|
||||
var seconds = (DateTime.Now - timeCalc).TotalSeconds.ToString("0.000");
|
||||
if (is_not_count)
|
||||
count = productLst.Count;
|
||||
return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"count\":" + count + ",\"seconds\":" + seconds + "}";
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -1454,6 +1485,8 @@ namespace KJD_Web.BLL.BXX
|
||||
var product_get_type = RegexUtils.GetStringQuery(ref inputData, "product_get_type")?.Replace("'", "\\'");
|
||||
var wx_safe_status = RegexUtils.GetStringQuery(ref inputData, "wx_safe_status")?.Replace("'", "\\'");
|
||||
var special_prod_type = RegexUtils.GetStringQuery(ref inputData, "special_prod_type")?.Replace("'", "\\'");
|
||||
if (special_prod_type.IsNullOrEmpty())
|
||||
special_prod_type = "普通商品,书籍";
|
||||
var is_supplier_prod_ok = RegexUtils.GetStringQuery(ref inputData, "is_supplier_prod_ok")?.Replace("'", "\\'");
|
||||
var is_not_count = RegexUtils.GetStringQuery(ref inputData, "is_not_count").ParseToBool(); // 不计数
|
||||
var prod_count = RegexUtils.GetStringQuery(ref inputData, "prod_count").ParseToInt();
|
||||
@@ -1523,9 +1556,9 @@ namespace KJD_Web.BLL.BXX
|
||||
where += " and p.product_get_type ='" + product_get_type + "'";
|
||||
if (!string.IsNullOrEmpty(wx_safe_status))
|
||||
where += " and p.wx_safe_status in ('" + wx_safe_status.Replace(",", "','") + "')";
|
||||
//if (!string.IsNullOrEmpty(special_prod_type)) // 普通商品 爆款商品
|
||||
//if (!string.IsNullOrEmpty(special_prod_type)) // 普通商品 爆款数据
|
||||
// where += " and p.special_prod_type ='" + special_prod_type + "'";
|
||||
sql += " and p.special_prod_type in ('普通商品','书籍')";
|
||||
where += " and p.special_prod_type in ('" + special_prod_type.Replace(",", "','") + "')";
|
||||
// 供应商货源是否已完成初始设置
|
||||
if (!string.IsNullOrEmpty(is_supplier_prod_ok))
|
||||
{
|
||||
@@ -1873,7 +1906,7 @@ namespace KJD_Web.BLL.BXX
|
||||
string sku_edit_json = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sku_edit_json"))?.Replace("'", "\\'");
|
||||
string wx_safe_status = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "wx_safe_status"))?.Replace("'", "\\'");
|
||||
string special_prod_type = RegexUtils.GetStringQuery(ref inputData, "special_prod_type")?.Replace("'", "\\'");
|
||||
if (!string.IsNullOrEmpty(special_prod_type) && special_prod_type != "爆款商品")
|
||||
if (!string.IsNullOrEmpty(special_prod_type) && special_prod_type != "爆款数据")
|
||||
special_prod_type = "普通商品";
|
||||
|
||||
if (string.IsNullOrEmpty(user_name))
|
||||
@@ -3561,36 +3594,53 @@ namespace KJD_Web.BLL.BXX
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
public string XJGetAiImage(string inputData)
|
||||
//public string XJGetAiImage(string inputData)
|
||||
//{
|
||||
// if (string.IsNullOrEmpty(inputData))
|
||||
// return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
|
||||
// if (!WXUserManage.GetSign(inputData))
|
||||
// return "{\"code\":999,\"msg\":\"校验失败\"}";
|
||||
|
||||
// string image_url = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "image_url"))?.ParseToString();
|
||||
// string word = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "word"))?.ParseToString();
|
||||
// if (image_url == null)
|
||||
// return "{\"code\":500,\"msg\":\"缺少图片地址\"}";
|
||||
// if (word == null)
|
||||
// return "{\"code\":500,\"msg\":\"缺少图片文字\"}";
|
||||
|
||||
// string secret = "sadhjufhe15c4fbvFBvcvds+5sdfds@#%$xsc";
|
||||
// string time = TimeUtils.DateTimeToTimestampSeconds(DateTime.Now).ToString();
|
||||
// string code = EncrypUtil.GetMd5(secret + time);
|
||||
|
||||
// try
|
||||
// {
|
||||
// string url = "http://ai-bs.jiaotian.vip:" + RandomUtils.GetId(20010, 20021) + "/index.php?obj=public/image";
|
||||
// string data = "time=" + time + "&code=" + code + "&image_url=" + image_url + "&word=" + word;
|
||||
// string html = HttpUtils.e57GetResponse(url, "");
|
||||
// return html;
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// return "{\"code\":50001,\"msg\":\"" + ex.Message + "\"}";
|
||||
// }
|
||||
//}
|
||||
|
||||
public string IsGetWXRecommendHotProd(string inputData)
|
||||
{
|
||||
if (string.IsNullOrEmpty(inputData))
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
|
||||
if (!WXUserManage.GetSign(inputData))
|
||||
return "{\"code\":999,\"msg\":\"校验失败\"}";
|
||||
|
||||
string image_url = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "image_url"))?.ParseToString();
|
||||
string word = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "word"))?.ParseToString();
|
||||
if (image_url == null)
|
||||
return "{\"code\":500,\"msg\":\"缺少图片地址\"}";
|
||||
if (word == null)
|
||||
return "{\"code\":500,\"msg\":\"缺少图片文字\"}";
|
||||
|
||||
string secret = "sadhjufhe15c4fbvFBvcvds+5sdfds@#%$xsc";
|
||||
string time = TimeUtils.DateTimeToTimestampSeconds(DateTime.Now).ToString();
|
||||
string code = EncrypUtil.GetMd5(secret + time);
|
||||
|
||||
try
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
string url = "http://ai-bs.jiaotian.vip:" + RandomUtils.GetId(20010, 20021) + "/index.php?obj=public/image";
|
||||
string data = "time=" + time + "&code=" + code + "&image_url=" + image_url + "&word=" + word;
|
||||
string html = HttpUtils.e57GetResponse(url, "");
|
||||
return html;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return "{\"code\":50001,\"msg\":\"" + ex.Message + "\"}";
|
||||
if (!WXUserManage.GetSign(inputData))
|
||||
return "{\"code\":999,\"msg\":\"校验失败\"}";
|
||||
|
||||
var isGetReturn = System.Configuration.ConfigurationManager.ConnectionStrings["GetWXRecommendHotProd"]?.ConnectionString;
|
||||
var isGetOnce = System.Configuration.ConfigurationManager.ConnectionStrings["GetWXRecommendHotProd"]?.ConnectionString;
|
||||
var minViewUv = (System.Configuration.ConfigurationManager.ConnectionStrings["GetWXRecommendHotProdMinViewUv"]?.ConnectionString).ParseToInt(500);
|
||||
var getInterval = (System.Configuration.ConfigurationManager.ConnectionStrings["GetWXRecommendHotProdInterval"]?.ConnectionString).ParseToInt(3);
|
||||
return "{\"code\":200,\"is_get\":\"" + isGetReturn + "\",\"isGetOnce\":\"" + isGetOnce + "\"," +
|
||||
"\"minViewUv\":" + minViewUv + ",\"getInterval\":" + getInterval + "}";
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ using KJD_Web.Model.PddModel;
|
||||
using KJD_Web.Model.ShopModel;
|
||||
using KJD_Web.Utils;
|
||||
using NaiBa.Util.Extension;
|
||||
using NaiBa.Util.Helper;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@@ -31,35 +32,55 @@ namespace KJD_Web.BLL.BXX
|
||||
+ mobile + "' and password='" + password + "'";
|
||||
|
||||
var dt = mySql.ExecuteDataTable(sql);
|
||||
mySql.Close();
|
||||
if (dt != null)
|
||||
if (!string.IsNullOrEmpty(mySql.Message))
|
||||
{
|
||||
foreach (DataRow row in dt.Rows)
|
||||
{
|
||||
UserLoginResultParam user = new UserLoginResultParam
|
||||
{
|
||||
id = Convert.ToInt32(row["id"]),
|
||||
user_name = row["user_name"].ToString(),
|
||||
nick_name = row["nick_name"].ToString(),
|
||||
mobile = row["user_name"].ToString(),
|
||||
password = row["password"].ToString(),
|
||||
group_id = row["group_id"].ToString(),
|
||||
card_id = row["card_id"].ToString(),
|
||||
company_name = row["company_name"].ToString(),
|
||||
is_sa = row.Table.Columns.Contains("is_sa") ? row["is_sa"].ParseToInt() : 0,
|
||||
sa_level = row.Table.Columns.Contains("sa_level") ? row["sa_level"].ParseToInt() : 0,
|
||||
authority = row["authority"].ToString(),
|
||||
};
|
||||
|
||||
if (string.IsNullOrEmpty(user.company_name))
|
||||
{
|
||||
user.company_name = "-";
|
||||
}
|
||||
var data = JsonUtils.SerializeObjectToString(user);
|
||||
return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"c\":\"" + EncrypUtil.Encryption(r2) + "\"}";
|
||||
}
|
||||
return "{\"code\":1,\"msg\":\"用户名或密码错误\"}";
|
||||
mySql.Close();
|
||||
return "{\"code\":500,\"msg\":\"" + mySql.Message + "\"}";
|
||||
}
|
||||
|
||||
if (dt == null)
|
||||
dt = new DataTable();
|
||||
|
||||
foreach (DataRow row in dt.Rows)
|
||||
{
|
||||
UserLoginResultParam user = new UserLoginResultParam
|
||||
{
|
||||
id = Convert.ToInt32(row["id"]),
|
||||
user_name = row["user_name"].ToString(),
|
||||
nick_name = row["nick_name"].ToString(),
|
||||
mobile = row["user_name"].ToString(),
|
||||
password = row["password"].ToString(),
|
||||
group_id = row["group_id"].ToString(),
|
||||
card_id = row["card_id"].ToString(),
|
||||
company_name = row["company_name"].ToString(),
|
||||
is_sa = row.Table.Columns.Contains("is_sa") ? row["is_sa"].ParseToInt() : 0,
|
||||
sa_level = row.Table.Columns.Contains("sa_level") ? row["sa_level"].ParseToInt() : 0,
|
||||
authority = row["authority"].ToString(),
|
||||
parent_user_name = row["parent_user_name"].ToString(),
|
||||
};
|
||||
|
||||
if (string.IsNullOrEmpty(user.company_name))
|
||||
{
|
||||
user.company_name = "-";
|
||||
}
|
||||
if (user.group_id != "3" && !string.IsNullOrEmpty(user.parent_user_name))
|
||||
{
|
||||
sql = "select authority from bxx.user where user_name='" + user.parent_user_name + "'";
|
||||
var rst = mySql.ExecuteFirst(sql);
|
||||
if (mySql.Message.IsNullOrEmpty())
|
||||
{
|
||||
user.parent_authority = rst;
|
||||
}
|
||||
}
|
||||
|
||||
var data = JsonUtils.SerializeObjectToString(user);
|
||||
|
||||
mySql.Close();
|
||||
return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"c\":\"" + EncrypUtil.Encryption(r2) + "\"}";
|
||||
}
|
||||
mySql.Close();
|
||||
return "{\"code\":1,\"msg\":\"用户名或密码错误\"}";
|
||||
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
@@ -720,5 +720,158 @@ namespace KJD_Web.BLL.WXXD
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
|
||||
public string AddMdyExpressOptimizeRemark(string inputData)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
if (!WXUserManage.GetSign(inputData))
|
||||
return "{\"code\":999,\"msg\":\"校验失败\"}";
|
||||
|
||||
var shop_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "shop_id"))?.Replace("'", "\\'");
|
||||
var order_id = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "order_id"))?.Replace("'", "\\'");
|
||||
var remark = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "remark"))?.Replace("'", "\\'");
|
||||
if (string.IsNullOrEmpty(order_id))
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"请输入订单编号\"}";
|
||||
}
|
||||
if (remark == null)
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"请输入备注内容\"}";
|
||||
}
|
||||
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
string sql = "";
|
||||
sql = "select exists (select 1 from wxxd.express_optimize_remark where order_id='" + order_id + "')";
|
||||
var exist = mySql.ExecuteFirstInt(sql);
|
||||
if (!mySql.Message.IsNullOrEmpty())
|
||||
{
|
||||
mySql.Close();
|
||||
return "{\"code\":501,\"msg\":\"" + mySql.Message + "\"}";
|
||||
}
|
||||
if (exist > 0)
|
||||
{
|
||||
sql = " UPDATE wxxd.express_optimize_remark SET ";
|
||||
if (shop_id != null)
|
||||
sql += " shop_id=@shop_id,";
|
||||
if (remark != null)
|
||||
sql += " remark=@remark,";
|
||||
sql = sql.TrimEnd(',');
|
||||
sql += " WHERE order_id=@order_id";
|
||||
}
|
||||
else
|
||||
{
|
||||
sql = " insert into wxxd.express_optimize_remark (shop_id,order_id,";
|
||||
if (remark != null)
|
||||
sql += "remark,";
|
||||
sql = sql.TrimEnd(',');
|
||||
sql += ") ";
|
||||
sql += " values (@shop_id,@order_id,";
|
||||
if (remark != null)
|
||||
sql += "@remark,";
|
||||
sql = sql.TrimEnd(',');
|
||||
sql += ");";
|
||||
}
|
||||
|
||||
List<MySqlParameter> paramLst = new List<MySqlParameter>();
|
||||
paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@shop_id", Value = shop_id, });
|
||||
paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@remark", Value = remark, });
|
||||
paramLst.Add(new MySqlParameter() { DbType = DbType.String, ParameterName = "@order_id", Value = order_id, });
|
||||
var rows = mySql.ExecuteAffectedRows(sql, paramLst.ToArray());
|
||||
mySql.Close();
|
||||
if (!mySql.Message.IsNullOrEmpty())
|
||||
return "{\"code\":501,\"msg\":\"" + mySql.Message + "\"}";
|
||||
else
|
||||
return "{\"code\":200,\"msg\":\"success\",\"affected_rows\":" + rows + "}";
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
|
||||
public string GetExpressOptimizeRemark(string inputData, bool isNoUserName = false)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
var timeCalc = DateTime.Now;
|
||||
|
||||
if (!WXUserManage.GetSign(inputData))
|
||||
return "{\"code\":999,\"msg\":\"校验失败\"}";
|
||||
|
||||
var order_ids = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "order_ids"))?.Replace("'", "\'");
|
||||
if (isNoUserName && order_ids.IsNullOrEmpty())
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"订单号不能为空\"}";
|
||||
}
|
||||
|
||||
int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
|
||||
int page_size = RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(200);
|
||||
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
string sql = "";
|
||||
sql = "select count(*) from wxxd.express_optimize_remark where 1=1";
|
||||
|
||||
string where = "";
|
||||
if (order_ids != null)
|
||||
where += " AND order_id in ('" + order_ids.Replace(",", "','") + "')";
|
||||
|
||||
sql += where;
|
||||
|
||||
var count = 0;
|
||||
count = mySql.ExecuteRowCount(sql);
|
||||
|
||||
DataTable dt;
|
||||
if (count == 0)
|
||||
{
|
||||
dt = new DataTable();
|
||||
}
|
||||
else
|
||||
{
|
||||
sql = "select * from wxxd.express_optimize_remark where 1=1";
|
||||
sql += where;
|
||||
sql += " order by id desc limit " + Math.Max(0, page - 1) * page_size + "," + page_size + ";";
|
||||
dt = mySql.ExecuteDataTable(sql);
|
||||
}
|
||||
mySql.Close();
|
||||
|
||||
if (!string.IsNullOrEmpty(mySql.Message))
|
||||
return "{\"code\":501,\"msg\":\"" + mySql.Message + "\"}";
|
||||
|
||||
if (dt != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
List<WxOptimizeRemarkInfo> WxOptimizeRemarkInfoLst = new List<WxOptimizeRemarkInfo>();
|
||||
foreach (DataRow row in dt.Rows)
|
||||
{
|
||||
WxOptimizeRemarkInfoLst.Add(new WxOptimizeRemarkInfo()
|
||||
{
|
||||
id = row["id"].ParseToInt(),
|
||||
order_id = row["order_id"].ParseToString(),
|
||||
remark = row["remark"].ParseToString(),
|
||||
shop_id = row["shop_id"].ParseToString(),
|
||||
add_time = Convert.ToDateTime(row["add_time"]),
|
||||
mdy_time = Convert.ToDateTime(row["mdy_time"]),
|
||||
});
|
||||
}
|
||||
JsonSerializerSettings jsonSetting = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore };
|
||||
var data = JsonUtils.SerializeObjectToString(WxOptimizeRemarkInfoLst, jsonSetting);
|
||||
var seconds = (DateTime.Now - timeCalc).TotalSeconds.ToString("0.000");
|
||||
return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"count\":" + count + ",\"seconds\":" + seconds + "}";
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"" + ex.Message + "\",\"data\":[],\"count\":" + 0 + "}";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"" + mySql.Message + "\",\"data\":[],\"count\":" + 0 + "}";
|
||||
}
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -63,50 +63,70 @@ namespace KJD_Web.BLL.WXXD
|
||||
+ mobile + "' and u.password='" + password + "'";
|
||||
|
||||
var dt = mySql.ExecuteDataTable(sql);
|
||||
mySql.Close();
|
||||
if (dt != null)
|
||||
if (!string.IsNullOrEmpty(mySql.Message))
|
||||
{
|
||||
foreach (DataRow row in dt.Rows)
|
||||
{
|
||||
UserLoginResultParam user = new UserLoginResultParam
|
||||
{
|
||||
id = Convert.ToInt32(row["id"]),
|
||||
user_name = row["user_name"].ToString(),
|
||||
nick_name = row["nick_name"].ToString(),
|
||||
mobile = row["user_name"].ToString(),
|
||||
password = row["password"].ToString(),
|
||||
group_id = row["group_id"].ToString(),
|
||||
card_id = row["card_id"].ToString(),
|
||||
company_name = row["company_name"].ToString(),
|
||||
is_sa = row.Table.Columns.Contains("is_sa") ? row["is_sa"].ParseToInt() : 0,
|
||||
sa_level = row.Table.Columns.Contains("sa_level") ? row["sa_level"].ParseToInt() : 0,
|
||||
authority = row.Table.Columns.Contains("authority") ? row["authority"].ParseToString() : "",
|
||||
points = row.Table.Columns.Contains("points") ? row["points"].ParseToInt() : 0,
|
||||
};
|
||||
var main_authority = row.Table.Columns.Contains("main_authority") ? row["main_authority"].ParseToString() : "";
|
||||
// 子账号积分用户权限跟随
|
||||
if (user.group_id != "3")
|
||||
{
|
||||
var userAuthLst = user.authority.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||
if (!main_authority.Contains("积分用户"))
|
||||
{
|
||||
userAuthLst.Remove("积分用户");
|
||||
user.authority = string.Join(",", userAuthLst);
|
||||
}
|
||||
else if (!user.authority.Contains("积分用户"))
|
||||
{
|
||||
user.authority = (user.authority + "," + "积分用户").Trim(',');
|
||||
}
|
||||
}
|
||||
if (string.IsNullOrEmpty(user.company_name))
|
||||
{
|
||||
user.company_name = "-";
|
||||
}
|
||||
var data = JsonUtils.SerializeObjectToString(user);
|
||||
return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"c\":\"" + EncrypUtil.Encryption(r2) + "\"}";
|
||||
}
|
||||
return "{\"code\":1,\"msg\":\"用户名或密码错误\"}";
|
||||
mySql.Close();
|
||||
return "{\"code\":500,\"msg\":\"" + mySql.Message + "\"}";
|
||||
}
|
||||
|
||||
if (dt == null)
|
||||
dt = new DataTable();
|
||||
|
||||
foreach (DataRow row in dt.Rows)
|
||||
{
|
||||
UserLoginResultParam user = new UserLoginResultParam
|
||||
{
|
||||
id = Convert.ToInt32(row["id"]),
|
||||
user_name = row["user_name"].ToString(),
|
||||
nick_name = row["nick_name"].ToString(),
|
||||
mobile = row["user_name"].ToString(),
|
||||
password = row["password"].ToString(),
|
||||
group_id = row["group_id"].ToString(),
|
||||
card_id = row["card_id"].ToString(),
|
||||
company_name = row["company_name"].ToString(),
|
||||
is_sa = row.Table.Columns.Contains("is_sa") ? row["is_sa"].ParseToInt() : 0,
|
||||
sa_level = row.Table.Columns.Contains("sa_level") ? row["sa_level"].ParseToInt() : 0,
|
||||
authority = row.Table.Columns.Contains("authority") ? row["authority"].ParseToString() : "",
|
||||
parent_user_name = row["parent_user_name"].ToString(),
|
||||
points = row.Table.Columns.Contains("points") ? row["points"].ParseToInt() : 0,
|
||||
};
|
||||
var main_authority = row.Table.Columns.Contains("main_authority") ? row["main_authority"].ParseToString() : "";
|
||||
// 子账号积分用户权限跟随
|
||||
if (user.group_id != "3")
|
||||
{
|
||||
var userAuthLst = user.authority.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
||||
if (!main_authority.Contains("积分用户"))
|
||||
{
|
||||
userAuthLst.Remove("积分用户");
|
||||
user.authority = string.Join(",", userAuthLst);
|
||||
}
|
||||
else if (!user.authority.Contains("积分用户"))
|
||||
{
|
||||
user.authority = (user.authority + "," + "积分用户").Trim(',');
|
||||
}
|
||||
}
|
||||
if (string.IsNullOrEmpty(user.company_name))
|
||||
{
|
||||
user.company_name = "-";
|
||||
}
|
||||
if (user.group_id != "3" && !string.IsNullOrEmpty(user.parent_user_name))
|
||||
{
|
||||
sql = "select authority from wxxd.user where user_name='" + user.parent_user_name + "'";
|
||||
var rst = mySql.ExecuteFirst(sql);
|
||||
if (mySql.Message.IsNullOrEmpty())
|
||||
{
|
||||
user.parent_authority = rst;
|
||||
}
|
||||
}
|
||||
|
||||
var data = JsonUtils.SerializeObjectToString(user);
|
||||
|
||||
mySql.Close();
|
||||
return "{\"code\":200,\"msg\":\"success\",\"data\":" + data + ",\"c\":\"" + EncrypUtil.Encryption(r2) + "\"}";
|
||||
}
|
||||
mySql.Close();
|
||||
return "{\"code\":1,\"msg\":\"用户名或密码错误\"}";
|
||||
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
@@ -652,6 +672,67 @@ namespace KJD_Web.BLL.WXXD
|
||||
}
|
||||
}
|
||||
|
||||
public string UpdateWxSaleAssistantCookie(string inputData)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
var id = (RegexUtils.GetStringQuery(ref inputData, "db_id")?.Replace("'", "\\'")).ParseToInt();
|
||||
if (id == 0)
|
||||
id = 1;
|
||||
var cookie = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "cookie"))?.Replace("'", "\\'");
|
||||
var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt();
|
||||
string time1 = RegexUtils.GetStringQuery(ref inputData, "code");
|
||||
if (time1 != EncrypUtil.Encryption(time))
|
||||
return "{\"code\":50000,\"msg\":\"校验失败\"}";
|
||||
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
string sql = "update wxxd.wx_sale_assistant_user set cookie='" + cookie + "' WHERE id=" + id + ";";
|
||||
|
||||
var rst = mySql.ExecuteNonQuery(sql);
|
||||
mySql.Close();
|
||||
if (rst && string.IsNullOrEmpty(mySql.Message))
|
||||
{
|
||||
return "{\"code\":200,\"msg\":\"success\"}";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(mySql.Message))
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"" + mySql.Message + "\"}";
|
||||
}
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
public string GetWxSaleAssistantCookie(string inputData)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
var id = (RegexUtils.GetStringQuery(ref inputData, "db_id")?.Replace("'", "\\'")).ParseToInt();
|
||||
if (id == 0)
|
||||
id = 1;
|
||||
var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt();
|
||||
string time1 = RegexUtils.GetStringQuery(ref inputData, "code");
|
||||
if (time1 != EncrypUtil.Encryption(time))
|
||||
return "{\"code\":50000,\"msg\":\"校验失败\"}";
|
||||
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
string sql = "select cookie from wxxd.wx_sale_assistant_user WHERE id=" + id + ";";
|
||||
|
||||
var rst = mySql.ExecuteDataTableRow(sql);
|
||||
mySql.Close();
|
||||
if (string.IsNullOrEmpty(mySql.Message))
|
||||
{
|
||||
return "{\"code\":200,\"cookie\":" + rst["cookie"] + "}";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(mySql.Message))
|
||||
{
|
||||
return "{\"code\":500,\"msg\":\"" + mySql.Message + "\"}";
|
||||
}
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// temu退回包裹的密钥
|
||||
/// </summary>
|
||||
|
||||
@@ -602,6 +602,5 @@ namespace KJD_Web
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
//GetJstProductCoidList
|
||||
}
|
||||
}
|
||||
@@ -94,6 +94,7 @@ namespace KJD_Web.Model
|
||||
public int product_get_type { get; set; }
|
||||
public string product_get_type_text { get; set; }
|
||||
|
||||
public int? view_uv { get; set; }
|
||||
public int sale_count { get; set; }
|
||||
public string sale_count_text { get; set; }
|
||||
public string wx_safe_status { get; set; }
|
||||
|
||||
@@ -63,6 +63,10 @@ namespace KJD_Web.Model
|
||||
/// </summary>
|
||||
public string authority { get; set; }
|
||||
/// <summary>
|
||||
/// 父账户的功能操作权限
|
||||
/// </summary>
|
||||
public string parent_authority { get; set; }
|
||||
/// <summary>
|
||||
/// 用户积分点数
|
||||
/// </summary>
|
||||
public int points { get; set; }
|
||||
|
||||
@@ -31,4 +31,14 @@ namespace KJD_Web.Model.WxModel
|
||||
public DateTime add_time { get; set; }
|
||||
public DateTime mdy_time { get; set; }
|
||||
}
|
||||
|
||||
public class WxOptimizeRemarkInfo
|
||||
{
|
||||
public int id { get; set; }
|
||||
public string shop_id { get; set; }
|
||||
public string order_id { get; set; }
|
||||
public string remark { get; set; }
|
||||
public DateTime add_time { get; set; }
|
||||
public DateTime mdy_time { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -325,5 +325,17 @@ namespace KJD_Web
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public void is_get_wx_recommend_hot_prod()
|
||||
{
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = new BXXProductManage().IsGetWXRecommendHotProd(jsontext);
|
||||
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -311,6 +311,30 @@ namespace KJD_Web
|
||||
Context.Response.End();
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public void add_mdy_express_optimize_remark()
|
||||
{
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = new WXExpressOptimizeManage().AddMdyExpressOptimizeRemark(jsontext);
|
||||
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public void get_express_optimize_remark()
|
||||
{
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = new WXExpressOptimizeManage().GetExpressOptimizeRemark(jsontext);
|
||||
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改店铺默认(售后)地址
|
||||
/// </summary>
|
||||
|
||||
@@ -174,5 +174,28 @@ namespace KJD_Web
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
|
||||
[WebMethod]
|
||||
public void get_wx_sale_assistant_cookie()
|
||||
{
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = new WXUserManage().GetWxSaleAssistantCookie(jsontext);
|
||||
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
[WebMethod]
|
||||
public void update_wx_sale_assistant_cookie()
|
||||
{
|
||||
string jsontext = GetRequestJsonString();
|
||||
|
||||
var result = jsontext;
|
||||
result = new WXUserManage().UpdateWxSaleAssistantCookie(jsontext);
|
||||
|
||||
Context.Response.Write(result);
|
||||
Context.Response.End();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,12 @@
|
||||
<add name="UpdateExe" connectionString="http://1.13.195.131:9000/Download/Update.exe"/>
|
||||
<add name="UpdateFiles" connectionString="http://1.13.195.131:9000/Download/Update525.zip"/>
|
||||
<add name="UpdateExeChk" connectionString="324527ACE5020DCA77D65A5037718B65"/>
|
||||
<add name="GetReturnPackage" connectionString="true"/>
|
||||
<add name="GetReturnPackage" connectionString="true"/>
|
||||
<add name="GetWXRecommendHotProd" connectionString="true"/>
|
||||
<add name="GetWXRecommendHotProdOncePerDay" connectionString="false"/>
|
||||
<add name="GetWXRecommendHotProdMinViewUv" connectionString="200"/>
|
||||
<add name="GetWXRecommendHotProdInterval" connectionString="3"/>
|
||||
<add name="IsKeepBase64UploadImgFile" connectionString="0"/>
|
||||
</connectionStrings>
|
||||
<!--
|
||||
有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
|
||||
|
||||
Reference in new issue
Block a user