From 33d6b85e6043a8be4106c8194f9b3823ef252b02 Mon Sep 17 00:00:00 2001 From: chfei Date: Thu, 8 Oct 2026 12:06:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A7=20asmx=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- KJD_WebService/BXXPriceService.asmx | 1 - KJD_WebService/BXXPriceService.asmx.cs | 198 ------ KJD_WebService/BXXProductService.asmx | 1 - KJD_WebService/BXXProductService.asmx.cs | 581 ----------------- KJD_WebService/BXXProductThirdService.asmx | 1 - KJD_WebService/BXXProductThirdService.asmx.cs | 221 ------- KJD_WebService/BXXShopService.asmx | 1 - KJD_WebService/BXXShopService.asmx.cs | 335 ---------- KJD_WebService/BXXUserService.asmx | 1 - KJD_WebService/BXXUserService.asmx.cs | 258 -------- KJD_WebService/DYShopService.asmx | 1 - KJD_WebService/DYShopService.asmx.cs | 208 ------ KJD_WebService/DYUserService.asmx | 1 - KJD_WebService/DYUserService.asmx.cs | 178 ----- KJD_WebService/KJD_WebService.csproj | 1 + KJD_WebService/OrderService.asmx | 1 - KJD_WebService/OrderService.asmx.cs | 153 ----- KJD_WebService/PriceService.asmx | 1 - KJD_WebService/PriceService.asmx.cs | 149 ----- KJD_WebService/ProductService.asmx | 1 - KJD_WebService/ProductService.asmx.cs | 335 ---------- KJD_WebService/ProductThirdService.asmx | 1 - KJD_WebService/ProductThirdService.asmx.cs | 268 -------- KJD_WebService/ShopService.asmx | 1 - KJD_WebService/ShopService.asmx.cs | 271 -------- KJD_WebService/ToolService.asmx | 1 - KJD_WebService/ToolService.asmx.cs | 64 -- KJD_WebService/UpdateService.asmx | 1 - KJD_WebService/UpdateService.asmx.cs | 95 --- KJD_WebService/UserService.asmx | 1 - KJD_WebService/UserService.asmx.cs | 396 ----------- KJD_WebService/WXOrderService.asmx | 1 - KJD_WebService/WXOrderService.asmx.cs | 616 ------------------ KJD_WebService/WXProductService.asmx | 1 - KJD_WebService/WXProductService.asmx.cs | 500 -------------- KJD_WebService/WXShopRevenueStatistics.asmx | 1 - .../WXShopRevenueStatistics.asmx.cs | 68 -- KJD_WebService/WXShopService.asmx | 1 - KJD_WebService/WXShopService.asmx.cs | 522 --------------- KJD_WebService/WXUserService.asmx | 1 - KJD_WebService/WXUserService.asmx.cs | 355 ---------- 41 files changed, 1 insertion(+), 5791 deletions(-) delete mode 100644 KJD_WebService/BXXPriceService.asmx delete mode 100644 KJD_WebService/BXXPriceService.asmx.cs delete mode 100644 KJD_WebService/BXXProductService.asmx delete mode 100644 KJD_WebService/BXXProductService.asmx.cs delete mode 100644 KJD_WebService/BXXProductThirdService.asmx delete mode 100644 KJD_WebService/BXXProductThirdService.asmx.cs delete mode 100644 KJD_WebService/BXXShopService.asmx delete mode 100644 KJD_WebService/BXXShopService.asmx.cs delete mode 100644 KJD_WebService/BXXUserService.asmx delete mode 100644 KJD_WebService/BXXUserService.asmx.cs delete mode 100644 KJD_WebService/DYShopService.asmx delete mode 100644 KJD_WebService/DYShopService.asmx.cs delete mode 100644 KJD_WebService/DYUserService.asmx delete mode 100644 KJD_WebService/DYUserService.asmx.cs delete mode 100644 KJD_WebService/OrderService.asmx delete mode 100644 KJD_WebService/OrderService.asmx.cs delete mode 100644 KJD_WebService/PriceService.asmx delete mode 100644 KJD_WebService/PriceService.asmx.cs delete mode 100644 KJD_WebService/ProductService.asmx delete mode 100644 KJD_WebService/ProductService.asmx.cs delete mode 100644 KJD_WebService/ProductThirdService.asmx delete mode 100644 KJD_WebService/ProductThirdService.asmx.cs delete mode 100644 KJD_WebService/ShopService.asmx delete mode 100644 KJD_WebService/ShopService.asmx.cs delete mode 100644 KJD_WebService/ToolService.asmx delete mode 100644 KJD_WebService/ToolService.asmx.cs delete mode 100644 KJD_WebService/UpdateService.asmx delete mode 100644 KJD_WebService/UpdateService.asmx.cs delete mode 100644 KJD_WebService/UserService.asmx delete mode 100644 KJD_WebService/UserService.asmx.cs delete mode 100644 KJD_WebService/WXOrderService.asmx delete mode 100644 KJD_WebService/WXOrderService.asmx.cs delete mode 100644 KJD_WebService/WXProductService.asmx delete mode 100644 KJD_WebService/WXProductService.asmx.cs delete mode 100644 KJD_WebService/WXShopRevenueStatistics.asmx delete mode 100644 KJD_WebService/WXShopRevenueStatistics.asmx.cs delete mode 100644 KJD_WebService/WXShopService.asmx delete mode 100644 KJD_WebService/WXShopService.asmx.cs delete mode 100644 KJD_WebService/WXUserService.asmx delete mode 100644 KJD_WebService/WXUserService.asmx.cs diff --git a/KJD_WebService/BXXPriceService.asmx b/KJD_WebService/BXXPriceService.asmx deleted file mode 100644 index 90f5330..0000000 --- a/KJD_WebService/BXXPriceService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="BXXPriceService.asmx.cs" Class="KJD_Web.BXXPriceService" %> diff --git a/KJD_WebService/BXXPriceService.asmx.cs b/KJD_WebService/BXXPriceService.asmx.cs deleted file mode 100644 index 6ae84fa..0000000 --- a/KJD_WebService/BXXPriceService.asmx.cs +++ /dev/null @@ -1,198 +0,0 @@ -using KJD_Web.BLL.BXX; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// PriceService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class BXXPriceService : System.Web.Services.WebService - { - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void get_price_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXPriceManage().GetPriceList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_price() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXPriceManage().AddPrice(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_db_price() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXPriceManage().DelDbPrice(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void mdy_db_price() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXPriceManage().MdyDBPrice(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void mdy_purchase_price() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXPriceManage().MdyPurchasePrice(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_purchase_price() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXPriceManage().AddPurchasePrice(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_purchase_price() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXPriceManage().DelPurchasePrice(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_purchase_price_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXPriceManage().GetPurchasePriceList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //AddExtCodePrice - [WebMethod] - public void add_ext_code_price() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXPriceManage().AddExtCodePrice(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_ext_code_price_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXPriceManage().GetExtCodePriceList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_db_ext_code_price() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXPriceManage().DelDbExtCodePrice(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_db_ext_code_price() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXPriceManage().MdyDBExtCodePrice(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/BXXProductService.asmx b/KJD_WebService/BXXProductService.asmx deleted file mode 100644 index 3fbe178..0000000 --- a/KJD_WebService/BXXProductService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="BXXProductService.asmx.cs" Class="KJD_Web.BXXProductService" %> diff --git a/KJD_WebService/BXXProductService.asmx.cs b/KJD_WebService/BXXProductService.asmx.cs deleted file mode 100644 index afaae19..0000000 --- a/KJD_WebService/BXXProductService.asmx.cs +++ /dev/null @@ -1,581 +0,0 @@ -using KJD_Web.BLL.BXX; -using KJD_Web.BLL.WXXD; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// ProductService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class BXXProductService : System.Web.Services.WebService - { - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void get_product_spu_id_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetProductSpuIdLst(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //AddProdDownSku - [WebMethod] - public void add_prod_down_sku() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().AddProdDownSku(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_prod_down_sku_lst_by_sku_codes() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetProdDownSkuLstBySkuCodes(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_product_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetProductList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_product_detail_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetProductList(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_product_list_random() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetProductListRandom(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_prod_wx_complate() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().AddProdWXComplate(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_prod_wx_complate_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetProdWXComplateList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_sku_replace_img_list_random() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetSkuReplaceImgListRandom(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().AddProduct(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().MdyProduct(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_violation_prod() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().MdyViolationProd(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_best_sale_prod() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().MdyBestSaleProd(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_db_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().DelDbProd(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //[WebMethod] - //public void mdy_product() - //{ - // string jsontext = GetRequestJsonString(); - - // var result = jsontext; - // //result = new BXXProductManage().MdyShop(jsontext); - - // Context.Response.Write(result); - // Context.Response.End(); - //} - - //[WebMethod] - //public void mdy_product_notes() - //{ - // string jsontext = GetRequestJsonString(); - - // var result = jsontext; - // result = new BXXProductManage().MdyProductNotes(jsontext); - - // Context.Response.Write(result); - // Context.Response.End(); - //} - - [WebMethod] - public void mdy_db_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().MdyDBProduct(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_product_groups() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetProductGroups(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_product_groups() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().AddProductGroup(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_product_groups() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().DelProductGroup(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_product_notes() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetProductNotes(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_product_notes() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().AddProductNotes(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_product_notes() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().DelProductNotes(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_pdd_product_cates() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetProductMainCates(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void get_product_cates() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetProductCates(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_sku_img_replace() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().AddSkuImgReplace(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_sku_img_replace() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().MdySkuImgReplace(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void get_sku_img_replace_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetSkuImgReplaceList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_sku_img_replace_detail_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetSkuImgReplaceList(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - //AddSkuImg - [WebMethod] - public void add_sku_img() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().AddSkuImg(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_wx_tokens() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().E57GetWxTokens(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_api_get_all_cate() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().WxApiGetWxAllCate(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_api_category_classify() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().WxApiCategoryClassify(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_api_upload_image() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().WxApiUploadImage(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //AddJSTSku - [WebMethod] - public void add_jst_sku() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().AddJSTSku(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void mdy_jst_sku() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().MdyJSTSku(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void get_jst_sku_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetJSTSkuList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void set_random_company_product_config() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().SetRandomCompanyProductConfig(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void get_random_company_product_config() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetRandomCompanyProductConfig(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - /// - /// 拼多多关联新增 - /// - [WebMethod] - public void add_relation() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().AddRelation(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - /// - /// 拼多多关联获取 - /// - [WebMethod] - public void get_relation() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetRelation(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_mdy_jst_product_ban() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().AddMdyJstProductBan(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void get_jst_product_coid_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetJstProductCoidList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void get_jst_product_ban_platform_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetJstProductBanPlatformList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/BXXProductThirdService.asmx b/KJD_WebService/BXXProductThirdService.asmx deleted file mode 100644 index cb44d7d..0000000 --- a/KJD_WebService/BXXProductThirdService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="BXXProductThirdService.asmx.cs" Class="KJD_Web.BXXProductThirdService" %> diff --git a/KJD_WebService/BXXProductThirdService.asmx.cs b/KJD_WebService/BXXProductThirdService.asmx.cs deleted file mode 100644 index d2e2985..0000000 --- a/KJD_WebService/BXXProductThirdService.asmx.cs +++ /dev/null @@ -1,221 +0,0 @@ -using KJD_Web.BLL.BXX; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// ProductThirdService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class BXXProductThirdService : System.Web.Services.WebService - { - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void get_product_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductThirdManage().GetProductList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_product_detail_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductThirdManage().GetProductList(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductThirdManage().AddProduct(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_db_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductThirdManage().DelDbProd(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //[WebMethod] - //public void mdy_product() - //{ - // string jsontext = GetRequestJsonString(); - - // var result = jsontext; - // //result = new ProductThridManage().MdyShop(jsontext); - - // Context.Response.Write(result); - // Context.Response.End(); - //} - - //[WebMethod] - //public void mdy_product_notes() - //{ - // string jsontext = GetRequestJsonString(); - - // var result = jsontext; - // result = new BXXProductThirdManage().MdyProductNotes(jsontext); - - // Context.Response.Write(result); - // Context.Response.End(); - //} - - [WebMethod] - public void mdy_product_category() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductThirdManage().MdyProductCategory(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_user_select_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductThirdManage().AddUserSelectProduct(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_user_select_product_status() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductThirdManage().MdyUserSelectProductStatus(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_user_select_product_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductThirdManage().GetUserSelectProductList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void admin_get_user_select_product_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductThirdManage().GetUserSelectProductList(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_select_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductThirdManage().DelSelectProd(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void set_select_product_sub_sa() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductThirdManage().SetSelectProductSubSa(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void mdy_product_select_notes() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductThirdManage().MdyProductSelectNotes(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/BXXShopService.asmx b/KJD_WebService/BXXShopService.asmx deleted file mode 100644 index d7c76f1..0000000 --- a/KJD_WebService/BXXShopService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="BXXShopService.asmx.cs" Class="KJD_Web.BXXShopService" %> diff --git a/KJD_WebService/BXXShopService.asmx.cs b/KJD_WebService/BXXShopService.asmx.cs deleted file mode 100644 index 3473b16..0000000 --- a/KJD_WebService/BXXShopService.asmx.cs +++ /dev/null @@ -1,335 +0,0 @@ -using KJD_Web.BLL.BXX; -using KJD_Web.BLL.WXXD; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// ShopService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class BXXShopService : System.Web.Services.WebService - { - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void get_pdd_client_info() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().GetPddClientInfo(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void get_shop_client_info() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().GetShopClientInfo(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - //WXAddMdyShopClientInfo - [WebMethod] - public void add_mdy_shop_client_info() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().AddMdyShopClientInfo(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_shop_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().GetShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_one_login_name_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().GetOneLoginNameShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().AddShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().DelShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().MdyShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_anti_content() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().MdyAntiContent(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_shop_cookie_and_login_status() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().MdyCookieAndLoginStatus(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void admin_get_shop_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().GetShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void sub_sa_get_select_prod_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().SubSaGetSelectProdShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_add_prod_remaining() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().UpdateAddProdRemaining(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void admin_mdy_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().MdyShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void admin_add_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().AddShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void admin_del_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().DelShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void set_shop_sub_sa() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().SetShopSubSa(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void e57_get_wx_tokens() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().E57GetWxTokens(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void e57_get_pdd_shop_token() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().E57GetPddShopToken(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_weidian_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().AddWeiDianShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void mdy_weidian_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().MdyWeiDianShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void mdy_weidian_shop_cookie() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().MdyWeiDianShopCookie(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void get_weidian_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().GetWeiDianShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void del_weidian_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXShopManage().DelWeiDianShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/BXXUserService.asmx b/KJD_WebService/BXXUserService.asmx deleted file mode 100644 index d5fb7c2..0000000 --- a/KJD_WebService/BXXUserService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="BXXUserService.asmx.cs" Class="KJD_Web.BXXUserService" %> diff --git a/KJD_WebService/BXXUserService.asmx.cs b/KJD_WebService/BXXUserService.asmx.cs deleted file mode 100644 index 1eeee06..0000000 --- a/KJD_WebService/BXXUserService.asmx.cs +++ /dev/null @@ -1,258 +0,0 @@ -using KJD_Web.BLL.BXX; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// UserService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class BXXUserService : System.Web.Services.WebService - { - [WebMethod] - public string hello_world() - { - return "Hello World"; - } - - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void user_login() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().CheckUserLogin(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_package_sign() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().GetPackageSign(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void change_password() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().ChangePassword(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_sub_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().GetSubUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_sub_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().UpdateSubUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_sub_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().AddSubUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void delete_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().DelUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_all_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().GetAllUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().UpdateUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().AddUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_scm121_cookie() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().UpdateScm121Cookie(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_scm121_cookie() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().GetScm121Cookie(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //AddBuyer - [WebMethod] - public void add_buyer() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().AddBuyer(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void mdy_buyer() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().MdyBuyer(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void mdy_buyer_cookie() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().MdyBuyerCookie(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void get_buyer() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().GetBuyer(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void del_buyer() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXUserManage().DelBuyer(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/DYShopService.asmx b/KJD_WebService/DYShopService.asmx deleted file mode 100644 index bd9fe38..0000000 --- a/KJD_WebService/DYShopService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="DYShopService.asmx.cs" Class="KJD_Web.DYShopService" %> diff --git a/KJD_WebService/DYShopService.asmx.cs b/KJD_WebService/DYShopService.asmx.cs deleted file mode 100644 index a604f33..0000000 --- a/KJD_WebService/DYShopService.asmx.cs +++ /dev/null @@ -1,208 +0,0 @@ -using KJD_Web.BLL.BXX; -using KJD_Web.BLL.DYXD; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// ShopService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class DYShopService : System.Web.Services.WebService - { - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void get_shop_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYShopManage().GetShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_one_login_name_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYShopManage().GetOneLoginNameShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYShopManage().AddShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYShopManage().DelShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYShopManage().MdyShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_shop_cookie_and_login_status() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYShopManage().MdyCookieAndLoginStatus(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void admin_get_shop_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYShopManage().GetShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void sub_sa_get_select_prod_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYShopManage().SubSaGetSelectProdShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_add_prod_remaining() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYShopManage().UpdateAddProdRemaining(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void admin_mdy_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYShopManage().MdyShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void admin_add_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYShopManage().AddShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void admin_del_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYShopManage().DelShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void set_shop_sub_sa() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYShopManage().SetShopSubSa(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/DYUserService.asmx b/KJD_WebService/DYUserService.asmx deleted file mode 100644 index 500c319..0000000 --- a/KJD_WebService/DYUserService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="DYUserService.asmx.cs" Class="KJD_Web.DYUserService" %> diff --git a/KJD_WebService/DYUserService.asmx.cs b/KJD_WebService/DYUserService.asmx.cs deleted file mode 100644 index 091034a..0000000 --- a/KJD_WebService/DYUserService.asmx.cs +++ /dev/null @@ -1,178 +0,0 @@ -using KJD_Web.BLL.BXX; -using KJD_Web.BLL.DYXD; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// UserService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class DYUserService : System.Web.Services.WebService - { - [WebMethod] - public string hello_world() - { - return "Hello World"; - } - - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void user_login() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYUserManage().CheckUserLogin(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_package_sign() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYUserManage().GetPackageSign(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void change_password() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYUserManage().ChangePassword(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_sub_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYUserManage().GetSubUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_sub_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYUserManage().UpdateSubUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_sub_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYUserManage().AddSubUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void delete_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYUserManage().DelUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_all_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYUserManage().GetAllUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYUserManage().UpdateUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new DYUserManage().AddUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/KJD_WebService.csproj b/KJD_WebService/KJD_WebService.csproj index c5ebd1e..ec8511b 100644 --- a/KJD_WebService/KJD_WebService.csproj +++ b/KJD_WebService/KJD_WebService.csproj @@ -275,6 +275,7 @@ + diff --git a/KJD_WebService/OrderService.asmx b/KJD_WebService/OrderService.asmx deleted file mode 100644 index c32a283..0000000 --- a/KJD_WebService/OrderService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="OrderService.asmx.cs" Class="KJD_Web.OrderService" %> diff --git a/KJD_WebService/OrderService.asmx.cs b/KJD_WebService/OrderService.asmx.cs deleted file mode 100644 index 3cc286a..0000000 --- a/KJD_WebService/OrderService.asmx.cs +++ /dev/null @@ -1,153 +0,0 @@ -using KJD_Web.BLL; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// OrderService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class OrderService : System.Web.Services.WebService - { - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void add_order() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new OrderManage().AddOrder(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - - [WebMethod] - public void get_order_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new OrderManage().GetOrderList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //UpdateOrderStatus1 - [WebMethod] - public void update_order_status1() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new OrderManage().UpdateOrderStatus1(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - //AddOrderCodeFile - [WebMethod] - public void add_order_code_file() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new OrderManage().AddOrderCodeFile(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //SaveOrderCodeFileLink - [WebMethod] - public void save_order_code_file_link() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new OrderManage().SaveOrderCodeFileLink(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //getOrderCodeFile - [WebMethod] - public void get_order_code_file() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new OrderManage().getOrderCodeFile(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //UploadOrder - [WebMethod] - public void upload_order() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new OrderManage().UploadOrder(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_order_status() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new OrderManage().UpdateOrderStatus(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/PriceService.asmx b/KJD_WebService/PriceService.asmx deleted file mode 100644 index 1b09c54..0000000 --- a/KJD_WebService/PriceService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="PriceService.asmx.cs" Class="KJD_Web.PriceService" %> diff --git a/KJD_WebService/PriceService.asmx.cs b/KJD_WebService/PriceService.asmx.cs deleted file mode 100644 index 9c96ed1..0000000 --- a/KJD_WebService/PriceService.asmx.cs +++ /dev/null @@ -1,149 +0,0 @@ -using KJD_Web.BLL; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// PriceService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class PriceService : System.Web.Services.WebService - { - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void get_price_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new PriceManage().GetPriceList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_price() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new PriceManage().AddPrice(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_db_price() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new PriceManage().DelDbPrice(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void mdy_db_price() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new PriceManage().MdyDBPrice(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void mdy_purchase_price() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new PriceManage().MdyPurchasePrice(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_purchase_price() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new PriceManage().AddPurchasePrice(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_purchase_price() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new PriceManage().DelPurchasePrice(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_purchase_price_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new PriceManage().GetPurchasePriceList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/ProductService.asmx b/KJD_WebService/ProductService.asmx deleted file mode 100644 index 4deee24..0000000 --- a/KJD_WebService/ProductService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="ProductService.asmx.cs" Class="KJD_Web.ProductService" %> diff --git a/KJD_WebService/ProductService.asmx.cs b/KJD_WebService/ProductService.asmx.cs deleted file mode 100644 index aa59632..0000000 --- a/KJD_WebService/ProductService.asmx.cs +++ /dev/null @@ -1,335 +0,0 @@ -using KJD_Web.BLL; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// ProductService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class ProductService : System.Web.Services.WebService - { - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void get_product_group_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductManage().GetProductGroupList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_product_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductManage().GetProductList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_product_detail_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductManage().GetProductList(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductManage().AddProduct(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_db_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductManage().DelDbProd(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //[WebMethod] - //public void mdy_product() - //{ - // string jsontext = GetRequestJsonString(); - - // var result = jsontext; - // //result = new ProductManage().MdyShop(jsontext); - - // Context.Response.Write(result); - // Context.Response.End(); - //} - - //[WebMethod] - //public void mdy_product_notes() - //{ - // string jsontext = GetRequestJsonString(); - - // var result = jsontext; - // result = new ProductManage().MdyProductNotes(jsontext); - - // Context.Response.Write(result); - // Context.Response.End(); - //} - - [WebMethod] - public void mdy_db_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductManage().MdyDBProduct(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void add_user_select_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductManage().AddUserSelectProduct(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_user_select_product_status() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductManage().MdyUserSelectProductStatus(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_user_select_product_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductManage().GetUserSelectProductList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void admin_get_user_select_product_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductManage().GetUserSelectProductList(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_select_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductManage().DelSelectProd(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void set_select_product_sub_sa() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductManage().SetSelectProductSubSa(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_product_select_notes() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductManage().MdyProductSelectNotes(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void get_select_prod_db_id_map_draft_id_list() - { - string jsontext = GetRequestJsonString(); - var result = jsontext; - result = new ProductManage().GetSelectProdDbIdMapDraftIdList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_select_prod_map_up_spu_id_list() - { - string jsontext = GetRequestJsonString(); - var result = jsontext; - result = new ProductManage().GetSelectProdMapUpSpuIdList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_sku_image() - { - string jsontext = GetRequestJsonString(); - var result = jsontext; - result = new ProductManage().AddSkuImg(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_sku_image() - { - string jsontext = GetRequestJsonString(); - var result = jsontext; - result = new ProductManage().DelSkuImg(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_sku_image_list() - { - string jsontext = GetRequestJsonString(); - var result = jsontext; - result = new ProductManage().GetSkuImgList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_base64_img_url() - { - string jsontext = GetRequestJsonString(); - var result = jsontext; - result = new ProductManage().MdyBase64ImgUrl(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_base64_img_use_count() - { - string jsontext = GetRequestJsonString(); - var result = jsontext; - result = new ProductManage().MdyBase64ImgUseCount(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //AddCateSizeWeightConfig - - [WebMethod] - public void add_cate_size_weight_config_v2() - { - string jsontext = GetRequestJsonString(); - var result = jsontext; - result = new ProductManage().AddCateSizeWeightConfig(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_cate_size_weight_config_v2() - { - string jsontext = GetRequestJsonString(); - var result = jsontext; - result = new ProductManage().GetCateSizeWeightConfig(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/ProductThirdService.asmx b/KJD_WebService/ProductThirdService.asmx deleted file mode 100644 index 01200d9..0000000 --- a/KJD_WebService/ProductThirdService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="ProductThirdService.asmx.cs" Class="KJD_Web.ProductThirdService" %> diff --git a/KJD_WebService/ProductThirdService.asmx.cs b/KJD_WebService/ProductThirdService.asmx.cs deleted file mode 100644 index a3edf5f..0000000 --- a/KJD_WebService/ProductThirdService.asmx.cs +++ /dev/null @@ -1,268 +0,0 @@ -using KJD_Web.BLL; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// ProductThirdService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class ProductThirdService : System.Web.Services.WebService - { - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void get_product_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductThirdManage().GetProductList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_product_detail_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductThirdManage().GetProductList(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_product_empty_product_json_for_bak() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductThirdManage().GetProductListEmptyProductJsonForBak(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void get_product_detail_list_bak() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductThirdManage().GetProductListBak(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void add_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductThirdManage().AddProduct(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_db_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductThirdManage().DelDbProd(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //[WebMethod] - //public void mdy_product() - //{ - // string jsontext = GetRequestJsonString(); - - // var result = jsontext; - // //result = new ProductThridManage().MdyShop(jsontext); - - // Context.Response.Write(result); - // Context.Response.End(); - //} - - //[WebMethod] - //public void mdy_product_notes() - //{ - // string jsontext = GetRequestJsonString(); - - // var result = jsontext; - // result = new ProductThirdManage().MdyProductNotes(jsontext); - - // Context.Response.Write(result); - // Context.Response.End(); - //} - - [WebMethod] - public void mdy_product_category() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductThirdManage().MdyProductCategory(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_db_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductThirdManage().MdyDBProduct(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_user_select_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductThirdManage().AddUserSelectProduct(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_user_select_product_status() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductThirdManage().MdyUserSelectProductStatus(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_user_select_product_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductThirdManage().GetUserSelectProductList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void admin_get_user_select_product_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductThirdManage().GetUserSelectProductList(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_select_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductThirdManage().DelSelectProd(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void set_select_product_sub_sa() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductThirdManage().SetSelectProductSubSa(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void mdy_product_select_notes() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ProductThirdManage().MdyProductSelectNotes(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_select_prod_db_id_map_draft_id_list() - { - string jsontext = GetRequestJsonString(); - var result = jsontext; - result = new ProductThirdManage().GetSelectProdDbIdMapDraftIdList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/ShopService.asmx b/KJD_WebService/ShopService.asmx deleted file mode 100644 index 9f19e16..0000000 --- a/KJD_WebService/ShopService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="ShopService.asmx.cs" Class="KJD_Web.ShopService" %> diff --git a/KJD_WebService/ShopService.asmx.cs b/KJD_WebService/ShopService.asmx.cs deleted file mode 100644 index 6aa6321..0000000 --- a/KJD_WebService/ShopService.asmx.cs +++ /dev/null @@ -1,271 +0,0 @@ -using KJD_Web.BLL; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// ShopService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class ShopService : System.Web.Services.WebService - { - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void get_shop_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().GetShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_one_login_name_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().GetOneLoginNameShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().AddShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().DelShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().MdyShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_shop_cookie_and_login_status() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().MdyCookieAndLoginStatus(jsontext); - - Context.Response.Write(result); - 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() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().GetShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void sub_sa_get_select_prod_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().SubSaGetSelectProdShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_add_prod_remaining() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().UpdateAddProdRemaining(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void admin_mdy_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().MdyShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void admin_add_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().AddShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void admin_del_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().DelShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void set_shop_sub_sa() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().SetShopSubSa(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - - [WebMethod] - public void get_shop_card_code_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().GetShopCardCodeList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void create_shop_card_code() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().CreateShopCardCode(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_shop_card_code() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().DelShopCardCode(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - ///ActiveJitCardCode - [WebMethod] - public void active_jit_card_code() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new ShopManage().ActiveJitCardCode(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/ToolService.asmx b/KJD_WebService/ToolService.asmx deleted file mode 100644 index ff9d844..0000000 --- a/KJD_WebService/ToolService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="ToolService.asmx.cs" Class="KJD_Web.ToolService" %> diff --git a/KJD_WebService/ToolService.asmx.cs b/KJD_WebService/ToolService.asmx.cs deleted file mode 100644 index 6d802df..0000000 --- a/KJD_WebService/ToolService.asmx.cs +++ /dev/null @@ -1,64 +0,0 @@ -using KJD_Web.BLL; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// UserService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class ToolService : System.Web.Services.WebService - { - [WebMethod] - public string hello_world() - { - return "Hello World"; - } - - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void create_table() - { - //return; - new ToolManage().CreateTable(); - } - } -} diff --git a/KJD_WebService/UpdateService.asmx b/KJD_WebService/UpdateService.asmx deleted file mode 100644 index dd87d0d..0000000 --- a/KJD_WebService/UpdateService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="UpdateService.asmx.cs" Class="KJD_Web.UpdateService" %> diff --git a/KJD_WebService/UpdateService.asmx.cs b/KJD_WebService/UpdateService.asmx.cs deleted file mode 100644 index 0169cae..0000000 --- a/KJD_WebService/UpdateService.asmx.cs +++ /dev/null @@ -1,95 +0,0 @@ -using KJD_Web.BLL; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// UpdateService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class UpdateService : System.Web.Services.WebService - { - [WebMethod] - public string hello_world() - { - return "Hello World"; - } - - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - - [WebMethod] - public void get_update() - { - var jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UpdateManage().GetUpdate(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_update_new() - { - var jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UpdateManage().GetUpdateNew(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_wx_finder_order_update() - { - var jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UpdateManage().GetWxFindOrderUpdate(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/UserService.asmx b/KJD_WebService/UserService.asmx deleted file mode 100644 index d109427..0000000 --- a/KJD_WebService/UserService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="UserService.asmx.cs" Class="KJD_Web.UserService" %> diff --git a/KJD_WebService/UserService.asmx.cs b/KJD_WebService/UserService.asmx.cs deleted file mode 100644 index 44a36ac..0000000 --- a/KJD_WebService/UserService.asmx.cs +++ /dev/null @@ -1,396 +0,0 @@ -using KJD_Web.BLL; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// UserService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class UserService : System.Web.Services.WebService - { - [WebMethod] - public string hello_world() - { - return "Hello World"; - } - - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void user_login() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UserManage().CheckUserLogin(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_package_sign() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UserManage().GetPackageSign(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void is_get_return_package() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UserManage().IsGetReturnPackage(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void change_password() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UserManage().ChangePassword(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_sub_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UserManage().GetSubUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_sub_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UserManage().UpdateSubUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_sub_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UserManage().AddSubUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void delete_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UserManage().DelUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_all_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UserManage().GetAllUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UserManage().UpdateUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UserManage().AddUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_user_amount() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UserManage().GetUserAmount(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - - #region 暂时作废 - /* - [WebMethod] - public void GetServer() - { - var softName = GetRequestJsonString(); - - var result = ""; - //result = System.Configuration.ConfigurationManager.ConnectionStrings[softName + "ServerUrl"].ConnectionString; - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void GetUpdateInfo() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new UpadteManage().CheckUpdate(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - - } - - [WebMethod] - public byte[] DownloadFile() - { - string file = Server.MapPath("").Substring(0, Server.MapPath("").LastIndexOf("\\")) + "\\bin\\test.txt"; - - System.IO.FileStream fs = null; - if (System.IO.File.Exists(file)) - { - try - { - fs = System.IO.File.OpenRead(file); - int b1; - System.IO.MemoryStream tempStream = new System.IO.MemoryStream(); - while ((b1 = fs.ReadByte()) != -1) - { - tempStream.WriteByte(((byte)b1)); - } - return tempStream.ToArray(); - } - catch (Exception ex) - { - return new byte[0]; - } - finally - { - fs.Close(); - } - } - else - { - return new byte[0]; - } - } - - ///客户端: - - /// - /// 从服务器上下载文件,未用 - /// - /// 源文件:如“E:\\city.txt” - /// 目标文件:如@"d:\city.txt" - //public static void DownFile(string str1, string str2) - //{ - // CRMweb.WebService1SoapClient myWeb = new CRMweb.WebService1SoapClient(); - // byte[] bs = myWeb.DownloadFile(str1); - // System.IO.FileStream stream = new System.IO.FileStream(str2, System.IO.FileMode.CreateNew); - // stream.Write(bs, 0, bs.Length); - // stream.Flush(); - // stream.Close(); - //} - - [WebMethod] - public void AddComment() - { - string result=""; - - //// 输入为querystring - //var jsonText = GetRequestJsonString(); - //try - //{ - // var user_id = RegexUtils.GetStringJson(ref jsonText, "user_id"); - // var comment = RegexUtils.GetStringJson(ref jsonText, "comment"); - // if (string.IsNullOrEmpty(user_id)) - // result = "{\"code\":1,\"msg\":\"未指定用户Id\"}"; - // else if (string.IsNullOrEmpty(comment)) - // result = "{\"code\":2,\"msg\":\"未指定留言内容\"}"; - // else - // { - // string sql = "insert into pepdtp.comment "; - // string sql1 = "("; - // string sql2 = "("; - // if (user_id != null) { sql1 += "user_id,"; sql2 += "'" + user_id + "',"; } - // if (comment != null) { sql1 += "comment,"; sql2 += "'" + comment + "',"; } - // var tTime = "'" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "',"; - // sql1 += "add_time,"; - // sql2 += tTime; - // sql1 = sql1.TrimEnd(',') + ")"; - // sql2 = sql2.TrimEnd(',') + ")"; - // sql = sql + sql1 + " values " + sql2; - - // string conn = System.Configuration.ConfigurationManager.ConnectionStrings["Conn"].ConnectionString; - // MysqlUtils mySql = new MysqlUtils(conn); - // bool isSuccess = mySql.ExecuteNonQuery(sql); - // if (!isSuccess) - // { - // result = "{\"code\":10001,\"msg\":\"添加留言入库出错,请稍后重试!\"}"; - // } - // else - // { - // result = "{\"code\":0,\"msg\":\"添加留言成功!\"}"; - // } - // mySql.Close(); - // } - //} - //catch (Exception ex) - //{ - // result = "{\"code\":10001,\"msg\":\"添加留言出错,请稍后重试!\"}"; - //}; - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void EditUser() - { - string result=""; - - // 输入为querystring - //var jsonText = GetRequestJsonString(); - //try - //{ - // //var role = RegexUtils.GetStringJson(ref jsonText, "role"); - // var name = RegexUtils.GetStringJson(ref jsonText, "name"); - // //var school = RegexUtils.GetStringJson(ref jsonText, "school"); - // var rkxd = RegexUtils.GetStringJson(ref jsonText, "rkxd"); - // var zxxkc = RegexUtils.GetStringJson(ref jsonText, "zxxkc"); - // //var is_import = RegexUtils.GetStringJson(ref jsonText, "is_import"); - // //var password = RegexUtils.GetStringJson(ref jsonText, "password"); - // //var order_id = RegexUtils.GetStringJson(ref jsonText, "order_id"); - // var user_id = RegexUtils.GetStringJson(ref jsonText, "user_id"); - // if (string.IsNullOrEmpty(user_id)) - // result = "{\"code\":1,\"msg\":\"未指定用户Id\"}"; - // else - // { - // string sql = "update pepdtp.user set "; - // //if (role != null) sql += "role=" + role + ","; - // if (name != null) sql += "name='" + name + "',"; - // //if (school != null) sql += "school='" + school + "',"; - // if (rkxd != null) sql += "rkxd='" + rkxd + "',"; - // if (zxxkc != null) sql += "zxxkc='" + zxxkc + "',"; - // //if (is_import != null) sql += "is_import='" + is_import + "',"; - // //if (password != null) sql += "password='" + password + "',"; - // //if (order_id != null) sql += "order_id='" + order_id + "',"; - // sql += "mdy_time='" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "',"; - // sql = sql.TrimEnd(' ').TrimEnd(','); - // if (user_id.Contains(",")) - // sql += " where user_id in ('" + user_id.Replace(",", "','") + "')"; - // else - // sql += " where user_id='" + user_id + "'"; - - // string conn = System.Configuration.ConfigurationManager.ConnectionStrings["Conn"].ConnectionString; - // MysqlUtils mySql = new MysqlUtils(conn); - // bool isSuccess = mySql.ExecuteNonQuery(sql); - // if (!isSuccess) - // { - // result = "{\"code\":10001,\"msg\":\"修改用户入库出错,请稍后重试!\"}"; - // } - // else - // { - // result = "{\"code\":0,\"msg\":\"修改用户成功!\"}"; - // } - // mySql.Close(); - // } - //} - //catch (Exception ex) - //{ - // result = "{\"code\":19999,\"msg\":\"修改用户出错,请稍后重试!\"}"; - //}; - - Context.Response.Write(result); - Context.Response.End(); - } - */ - #endregion - } -} diff --git a/KJD_WebService/WXOrderService.asmx b/KJD_WebService/WXOrderService.asmx deleted file mode 100644 index a8cbb72..0000000 --- a/KJD_WebService/WXOrderService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="WXOrderService.asmx.cs" Class="KJD_Web.WXOrderService" %> diff --git a/KJD_WebService/WXOrderService.asmx.cs b/KJD_WebService/WXOrderService.asmx.cs deleted file mode 100644 index 6d57967..0000000 --- a/KJD_WebService/WXOrderService.asmx.cs +++ /dev/null @@ -1,616 +0,0 @@ -using KJD_Web.BLL; -using KJD_Web.BLL.WXXD; -using KJD_Web.Utils; -using NaiBa.Util.Extension; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// OrderService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class WXOrderService : System.Web.Services.WebService - { - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - //[WebMethod] - public void repair_miss_direct_order() - { - string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString; - MysqlUtils mySql = new MysqlUtils(conn); - - //var s = "SELECT order_id,out_order_id FROM `wxxd`.`order_item_ext` WHERE add_time > '2026-08-15 15:30' AND buy_type = '直发'"; - - //var s = "SELECT order_id,out_order_id FROM `wxxd`.`order_item_ext` WHERE add_time > '2026-08-13 15:30' AND add_time < '2026-08-15 15:30' And buy_type = '直发'"; - //var s = "SELECT order_id,out_order_id FROM `wxxd`.`order_item_ext` WHERE add_time > '2026-08-10 15:30' AND add_time < '2026-08-12 15:30' And buy_type = '直发'"; - //var s = "SELECT order_id,out_order_id FROM `wxxd`.`order_item_ext` WHERE add_time > '2026-08-08 15:30' AND add_time < '2026-08-10 15:30' And buy_type = '直发'"; - var s = "SELECT order_id,out_order_id FROM `wxxd`.`order_item_ext` WHERE add_time > '2026-7-15 15:30' AND add_time < '2026-08-15 15:30' And buy_type = '直发'"; - //var s = "SELECT order_id,out_order_id FROM `wxxd`.`order_item_ext` WHERE order_id in ('3738460213351447040') AND buy_type = '直发'"; - var dt1 = mySql.ExecuteDataTable(s); - //out_order_no //out_express_no //out_shipped=0 - //s = " Select order_id FROM erp.oms_wei_order WHERE order_id in ('" + string.Join("','", dt1.Rows.Cast().Select(r => r["order_id"].ParseToLong()))+ "') " + - // " and out_order_no is null"; - //dt1 = mySql.ExecuteDataTable(s); - - mySql.Close(); - - conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString; - mySql = new MysqlUtils(conn); - string sql = "Select * FROM wxxd.order_pdd_buyer_order WHERE wx_order_id in ('" + string.Join("','", dt1.Rows.Cast().Select(r => r["order_id"].ParseToLong())) + "') And wx_send_type=1"; - var dt = mySql.ExecuteDataTable(sql); - List buyerOrderList = new List(); - mySql.Close(); - if (dt != null) - { - try - { - foreach (System.Data.DataRow row in dt.Rows) - { - Model.WxModel.order_pdd_buyer_order order = new Model.WxModel.order_pdd_buyer_order - { - id = row["id"].ParseToLong(), - add_time = row["add_time"].ParseToString().ParseToDateTime(), - after_sales_status = row["after_sales_status"].ParseToNullableInt(), - buyerId = row["buyerId"].ParseToString(), - buyerName = row["buyerName"].ParseToString(), - mdy_time = row["mdy_time"].ParseToString().ParseToDateTime(), - order_amount = row["order_amount"].ParseToNullableInt(), - order_detail = row["order_detail"].ParseToString(), - order_sn = row["order_sn"].ParseToString(), - order_status_prompt = row["order_status_prompt"].ParseToString(), - order_time = row["order_time"].ParseToNullableLong(), - outExpressCompanyCode = row["outExpressCompanyCode"].ParseToString(), - pre_allocated_order_no = row["pre_allocated_order_no"].ParseToNullableInt(), - tracking_number = row["tracking_number"].ParseToString(), - TransitCreateTime = row["TransitCreateTime"].ParseToString().ParseToDateTime(), - wx_order_id = row["wx_order_id"].ParseToString(), - wx_sku_id = row["wx_sku_id"].ParseToString(), - wx_send_type = row["wx_send_type"].ParseToInt(), - }; - buyerOrderList.Add(order); - } - - foreach (var bo in buyerOrderList.ToList()) - { - var buyerOrders = buyerOrderList.Where(r => r.wx_order_id == bo.wx_order_id).ToList(); - if (buyerOrders.Count > 1) - { - - } - else - { - buyerOrderList.Remove(buyerOrders.FirstOrDefault()); - } - } - } - catch (Exception ex) - { - } - } - string err = ""; - - buyerOrderList = buyerOrderList.OrderByDescending(b => b.add_time).ToList(); - - var buyerOrderListTmp = new List(); - foreach(var od in buyerOrderList) - { - if (buyerOrderListTmp.Any(o => o.wx_order_id == od.wx_order_id)) - continue; - buyerOrderListTmp.Add(od); - } - buyerOrderList = buyerOrderListTmp; - - //46 - foreach (var pddOrder in buyerOrderList) - { - //if (!pddOrder.outExpressCompanyCode.IsNullOrEmpty() && !pddOrder.tracking_number.IsNullOrEmpty()) - // continue; - - bool isSend = false; - var pddOrderSn = ""; - - mySql = new MysqlUtils(conn); - string sqlStr; - sqlStr = " Select out_order_no FROM erp.oms_wei_order WHERE order_id in ('" + pddOrder.wx_order_id + "')"; - pddOrderSn = mySql.ExecuteFirst(sqlStr); - - if (!pddOrder.outExpressCompanyCode.IsNullOrEmpty() && !pddOrder.tracking_number.IsNullOrEmpty()) - { - sqlStr = " Select status FROM erp.oms_wei_order WHERE order_id in ('" + pddOrder.wx_order_id + "')"; - var status = mySql.ExecuteFirstInt(sqlStr); - if (status > 20) - { - isSend = true; - //sqlStr = "update `erp`.`oms_wei_order` set out_express_company='" + pddOrder.outExpressCompanyCode + "',out_express_no='" + pddOrder.tracking_number + - // "' WHERE order_id = '" + pddOrder.wx_order_id + "'"; - } - - sqlStr = "update `erp`.`oms_wei_order` set out_express_company='" + pddOrder.outExpressCompanyCode + "',out_express_no='" + pddOrder.tracking_number + - "' WHERE order_id = '" + pddOrder.wx_order_id + "'"; - var rows = mySql.ExecuteAffectedRows(sqlStr); - } - mySql.Close(); - if (!mySql.Message.IsNullOrEmpty()) - continue; - - if (pddOrderSn == pddOrder.order_sn) - { - continue; - } - - - Newtonsoft.Json.Linq.JObject obj = new Newtonsoft.Json.Linq.JObject(); - obj["platform"] = "WEISHOP"; - obj["outAmount"] = (pddOrder.order_amount.ParseToDecimal()).ParseToInt() + ""; - obj["outAccount"] = pddOrder.buyerName; - obj["orderId"] = pddOrder.wx_order_id; - obj["outOrderNo"] = pddOrder.order_sn; - if (!isSend && !pddOrder.outExpressCompanyCode.IsNullOrEmpty() && !pddOrder.tracking_number.IsNullOrEmpty()) - { - obj["outExpressCompany"] = pddOrder.outExpressCompanyCode; - obj["outExpressNo"] = pddOrder.tracking_number; - } - - - var dataStr = JsonUtils.SerializeObject(obj); - var url = "https://po.e57.cn/prod-api/api/oms-api/external_procurement/bind/v2"; - //成功 "0SUCCESS" - //更新微信外采订单状态成功1 - //失败 已存在 1505调用微信接口更新物流信息失败: 非法参数, 同运单号拦截 rid: 69d8ab9c-22baa3b1-67de0d95 - var exportRst = HttpUtils.e57PostResponse(url, dataStr, ""); - if (!exportRst.Contains("1") && !exportRst.Contains("0")) - { - err += "\r\n" + pddOrder.order_sn + " " + exportRst; - } - - - } - } - - - //[WebMethod] - public void repair_miss_order_software_remark() - { - string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString; - MysqlUtils mySql = new MysqlUtils(conn); - - //var s1 = "SELECT order_id,soft_remark FROM `erp`.`oms_wei_order_bak_2608151610` WHERE create_time > '2026-7-15 15:30' AND create_time < '2026-08-15 15:30' and soft_remark is not null"; - var startTime = TimeUtils.DateTimeToTimestampSeconds("2026-6-25 16:10".ParseToDateTime()).ToString(); - var EndTime = TimeUtils.DateTimeToTimestampSeconds("2026-7-1 16:10".ParseToDateTime()).ToString(); - var s1 = "SELECT order_id,soft_remark FROM `erp`.`oms_wei_order_bak_2608151612` WHERE create_time > " + startTime + " AND create_time < " + EndTime + " and soft_remark is not null"; - var dt = mySql.ExecuteDataTable(s1); - - mySql.Close(); - - string err = ""; - if (dt != null) - { - int id = 0; - int cnt = 0; - - var orderStr = "'" + string.Join("','", dt.Rows.Cast().Select(rw => rw["order_id"].ParseToString())) + "'"; - var orderStr2 = "'" + string.Join("','", dt.Rows.Cast().Select(rw => rw["order_id"].ParseToString() + "|" + rw["soft_remark"].ParseToString())) + "'"; - - foreach (System.Data.DataRow row in dt.Rows) - { - id++; - var orderId = row["order_id"].ParseToString(); - var softwareRemark = row["soft_remark"].ParseToString(); - try - { - - mySql = new MysqlUtils(conn); - string sqlStr; - sqlStr = "SELECT soft_remark FROM `erp`.`oms_wei_order` WHERE order_id='" + orderId + "'"; - var remark = mySql.ExecuteFirst(sqlStr); - if (remark.IsNullOrEmpty() && !string.IsNullOrEmpty(softwareRemark)) - { - - } - else - { - mySql.Close(); - continue; - } - - sqlStr = " UPDATE erp.oms_wei_order set soft_remark='" + softwareRemark + "' WHERE order_id='" + orderId + "' AND (soft_remark IS NULL or soft_remark='')"; - var rows = mySql.ExecuteAffectedRows(sqlStr); - cnt += rows; - if (!mySql.Message.IsNullOrEmpty()) - { - err += "\r\n" + orderId + " " + softwareRemark + " " + mySql.Message; - } - mySql.Close(); - } - catch (Exception ex) - { - err += "\r\n" + orderId + " " + softwareRemark + " " + mySql.Message; - } - } - } //30 //59 //6 //5 //1 //1 //1 - } - - [WebMethod] - public void get_erp_order_list() - { - get_order_list(); - } - [WebMethod] - public void get_order_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXGetErpOrderList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_erp_order_item_list() - { - get_order_item_list(); - } - [WebMethod] - public void get_order_item_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXGetErpOrderItemList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_erp_refund_list() - { - get_refund_list(); - } - [WebMethod] - public void get_refund_list() - { - - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXGetErpRefundList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_add_mdy_buy_prod_map_skus() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXAddMdyBuyProdMapSkus(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void wx_get_buy_pord_map_skus() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXGetBuyPordMapSkus(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_add_mdy_buy_prod_map() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXAddMdyBuyProdMap(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_get_buy_prod_map() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXGetBuyPordMap(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - /// - /// 获取中转仓订单信息 - /// - [WebMethod] - public void wx_get_transit_order() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXGetTransitOrder(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - /// - /// 修改中转仓物流信息 - /// - [WebMethod] - public void wx_update_erp_order_express() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXUpdateErpOrderExpress(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - /// - /// 修改中转仓取号状态 临时补救 - /// - [WebMethod] - public void wx_update_erp_allocated_order_no() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXUpdateErpAllocatedOrderNo(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - /// - /// 删除中转仓指定订单 临时补救,慎用 - /// - [WebMethod] - public void wx_del_erp_transit_warehouse_order() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXDelErpTransitWarehouseOrder(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void wx_update_erp_soft_remark() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXUpdateErpSoftRemark(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_update_erp_color_flag() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXUpdateErpColorFlag(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void wx_update_erp_out_after_sale_status() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXUpdateErpOutAfterSaleStatus(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void wx_add_mdy_buyer_order() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXAddMdyBuyerOrder(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_get_buyer_order_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXGetBuyerOrderList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_add_mdy_buyer_after_sale() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXAddMdyBuyerAfterSale(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_get_buyer_after_sale_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXGetBuyerAfterSaleList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - - [WebMethod] - public void wx_get_transit_warehouse_aftersale_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXGetTransitWarehouseAfterSaleList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void wx_update_abnormal_transit_order() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXUpdateAbnormalTransitOrder(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_update_transit_order_reject_status() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXUpdateTransitOrderRejectStatus(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_add_order_item_ext_info() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXAddOrderItemExtInfo(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_mdy_order_item_ext_info() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXMdyOrderItemExtInfo(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_get_order_item_ext_info() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXGetOrderItemExtInfoList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //WXGetErpReturnOrderList - [WebMethod] - public void wx_get_erp_return_order_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().WXGetErpReturnOrderList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void wx_get_task_status_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOrderManage().GetWxTaskStatus(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/WXProductService.asmx b/KJD_WebService/WXProductService.asmx deleted file mode 100644 index a618afb..0000000 --- a/KJD_WebService/WXProductService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="WXProductService.asmx.cs" Class="KJD_Web.WXProductService" %> diff --git a/KJD_WebService/WXProductService.asmx.cs b/KJD_WebService/WXProductService.asmx.cs deleted file mode 100644 index 560088c..0000000 --- a/KJD_WebService/WXProductService.asmx.cs +++ /dev/null @@ -1,500 +0,0 @@ -using KJD_Web.BLL.BXX; -using KJD_Web.BLL.WXXD; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// ProductService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class WXProductService : System.Web.Services.WebService - { - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void get_pdd_product_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXGetPDDProductList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_pdd_product_detail_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXGetPDDProductList(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void get_hot_product_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXGetHotProductList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_hot_product_detail_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXGetHotProductList(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void wx_get_product_latest_buy_amount_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXGetProductLatestBuyAmountList(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void get_pdd_product_list_random() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXGetPDDProductListRandom(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_pdd_prod_wx_complate_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().GetProdWXComplateList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void get_pdd_product_groups() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXGetPDDProductGroups(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_pdd_product_cates() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXGetPDDProductCates(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_pdd_product() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXMdyPDDProduct(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_best_sale_prod() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().MdyBestSaleProd(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void set_random_company_product_config() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().SetRandomCompanyProductConfig(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void get_random_company_product_config() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().GetRandomCompanyProductConfig(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_secret_spu_id_shop_id_map() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXAddSecretSpuIdShopIdMap(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //WXAddSecretIdUpMap - [WebMethod] - public void wx_add_secret_id_up_map() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXAddSecretIdUpMap(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - /// - /// 根据聚水潭加密商品编号(货号)查询所有上传过的店铺id 260224 未测试 - /// - [WebMethod] - public void get_secret_spu_id_shop_id_map_List() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXGetSecretSpuIdShopIdMapList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_add_mdy_after_sale() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXAddMdyAfterSale(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void wx_get_after_sale() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXGetAfterSale(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void wx_get_random_after_sale_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXGetRandomAfterSaleList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void wx_get_after_sale_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXGetAfterSaleList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void wx_del_address() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXDelAddress(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - //WXAddMdyAfterSale - [WebMethod] - public void wx_add_mdy_shipping_template() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXAddMdyShippingTemplate(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void wx_get_shipping_template() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXGetShippingTemplate(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void wx_add_mdy_commission_rate() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXAddMdyCommissionRate(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void wx_get_commission_rate() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXGetCommissionRate(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_add_mdy_qualification_image() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXAddMdyQualificationImage(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_get_qualification_image() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXGetQualificationImage(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_del_qualification_image() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().WXDelQualificationImage(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void e57_get_freight_template() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().E57GetFreightTemplate(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void e57_after_sale() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXProductManage().E57AfterSale(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_api_get_all_cate() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().WxApiGetWxAllCate(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - /// - /// 搜索代发 - /// - [WebMethod] - public void wx_api_dropship_search() - { - string jsontext = GetRequestJsonString(); - var result = new BXXProductManage().WxApiDropshipSearch(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - /// - /// 添加代发 - /// - [WebMethod] - public void wx_api_dropship_assign() - { - string jsontext = GetRequestJsonString(); - var result = new BXXProductManage().WxApiDropshipAssign(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - /// - /// 添加代发 - /// - [WebMethod] - public void wx_api_dropship_cancel() - { - string jsontext = GetRequestJsonString(); - var result = new BXXProductManage().WxApiDropshipCancel(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_api_category_classify() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().WxApiCategoryClassify(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_api_upload_image() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new BXXProductManage().WxApiUploadImage(jsontext); - - 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(); - } - } -} diff --git a/KJD_WebService/WXShopRevenueStatistics.asmx b/KJD_WebService/WXShopRevenueStatistics.asmx deleted file mode 100644 index 5343caa..0000000 --- a/KJD_WebService/WXShopRevenueStatistics.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="WXShopRevenueStatistics.asmx.cs" Class="KJD_Web.WXShopRevenueStatistics" %> diff --git a/KJD_WebService/WXShopRevenueStatistics.asmx.cs b/KJD_WebService/WXShopRevenueStatistics.asmx.cs deleted file mode 100644 index e760f85..0000000 --- a/KJD_WebService/WXShopRevenueStatistics.asmx.cs +++ /dev/null @@ -1,68 +0,0 @@ -using KJD_Web.BLL.BXX; -using KJD_Web.BLL.WXXD; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// UserService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class WXShopRevenueStatistics : System.Web.Services.WebService - { - public WXShopRevenueStatistics() - { - - } - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void get_shop_order_amount() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopRevenueStatisticsManage().GetShopOrderAmountRange(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/WXShopService.asmx b/KJD_WebService/WXShopService.asmx deleted file mode 100644 index d1e86e4..0000000 --- a/KJD_WebService/WXShopService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="WXShopService.asmx.cs" Class="KJD_Web.WXShopService" %> diff --git a/KJD_WebService/WXShopService.asmx.cs b/KJD_WebService/WXShopService.asmx.cs deleted file mode 100644 index 9415361..0000000 --- a/KJD_WebService/WXShopService.asmx.cs +++ /dev/null @@ -1,522 +0,0 @@ -using KJD_Web.BLL.BXX; -using KJD_Web.BLL.WXXD; -using KJD_Web.Utils; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// ShopService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class WXShopService : System.Web.Services.WebService - { - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - - [WebMethod] - public void get_shop_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().GetShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - /// - /// 获取店铺erp端账户 - /// - [WebMethod] - public void get_shop_erp_merchant() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().GetShopErpMerchant(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_one_login_name_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().GetOneLoginNameShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_one_shop_cookie_by_app_id() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().GetOneShopCookieByAppId(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().AddShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void del_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().DelShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().MdyShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void mdy_shop_cookie_and_login_status() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().MdyCookieAndLoginStatus(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void admin_get_shop_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().GetShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void sub_sa_get_select_prod_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().SubSaGetSelectProdShop(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_add_prod_remaining() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().UpdateAddProdRemaining(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void admin_mdy_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().MdyShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void admin_add_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().AddShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void admin_del_shop() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().DelShop(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void set_shop_sub_sa() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().SetShopSubSa(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_waybill() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXExpressOptimizeManage().AddWaybill(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void del_waybill() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXExpressOptimizeManage().DelWaybill(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void get_waybill() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXExpressOptimizeManage().GetWayBill(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void get_waybill_no_user_name() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXExpressOptimizeManage().GetWayBill(jsontext, true); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void select_and_set_waybill() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXExpressOptimizeManage().SelectAndSetWaybill(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void select_waybill() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXExpressOptimizeManage().SelectWaybill(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - /// - /// 标记已正式使用的运单号 - /// - [WebMethod] - public void update_used_waybill() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXExpressOptimizeManage().UpdateUsedWaybill(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_mdy_express_optimize_rst() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXExpressOptimizeManage().AddMdyExpressOptimizeRst(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_express_optimize_rst() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXExpressOptimizeManage().GetExpressOptimizeRst(jsontext); - - Context.Response.Write(result); - 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(); - } - - /// - /// 修改店铺默认(售后)地址 - /// - [WebMethod] - public void wx_add_mdy_shop_default_address() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().WXAddMdyShopDefaultAddress(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - /// - /// 查询店铺默认(售后)地址 - /// - [WebMethod] - public void wx_get_shop_default_address_list() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().WXGetShopDefaultAddressList(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void wx_del_shop_default_address() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().WXDelShopDefaultAddress(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_add_mdy_order_address() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().WXAddMdyOrderDecryptAddress(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void wx_get_order_address() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().WXGetOrderDecryptAddress(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void wx_add_mdy_buy_url_notes() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().WXAddMdyBuyUrlNotes(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void wx_get_buy_url_notes() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().WXGetBuyUrlNotes(jsontext); - - Context.Response.Write(result); - 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() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().E57GetWxTokens(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void e57_get_wx_shop_token() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXShopManage().E57GetWxShopToken(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - } -} diff --git a/KJD_WebService/WXUserService.asmx b/KJD_WebService/WXUserService.asmx deleted file mode 100644 index 6c1ab59..0000000 --- a/KJD_WebService/WXUserService.asmx +++ /dev/null @@ -1 +0,0 @@ -<%@ WebService Language="C#" CodeBehind="WXUserService.asmx.cs" Class="KJD_Web.WXUserService" %> diff --git a/KJD_WebService/WXUserService.asmx.cs b/KJD_WebService/WXUserService.asmx.cs deleted file mode 100644 index c140754..0000000 --- a/KJD_WebService/WXUserService.asmx.cs +++ /dev/null @@ -1,355 +0,0 @@ -using KJD_Web.BLL.BXX; -using KJD_Web.BLL.WXXD; -using KJD_Web.Utils; -using NaiBa.Util.Extension; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Web; -using System.Web.Services; - -namespace KJD_Web -{ - /// - /// UserService 的摘要说明 - /// - [WebService(Namespace = "http://tempuri.org/")] - [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] - [System.ComponentModel.ToolboxItem(false)] - // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。 - // [System.Web.Script.Services.ScriptService] - public class WXUserService : System.Web.Services.WebService - { - [WebMethod] - public string hello_world() - { - return "Hello World"; - } - - private string GetRequestJsonString() - { - Context.Response.ContentType = "text/html;charset=utf-8"; - Context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); - - using (Stream s = HttpContext.Current.Request.InputStream) // 获得json 字符流 - { - // 还原数据流 - byte[] b = new byte[s.Length]; - s.Read(b, 0, (int)s.Length); - string jsonText = Encoding.UTF8.GetString(b); // JSON字符串 - if (string.IsNullOrEmpty(jsonText)) - { - var qs = HttpContext.Current.Request.QueryString; - if (qs != null && qs.Keys.Count > 0) - { - jsonText = "{"; - foreach (var key in qs.Keys) - { - jsonText += "\"" + key + "\":" + "\"" + qs[key.ToString()] + "\";"; - } - jsonText = jsonText.TrimEnd(';') + "}"; - } - } - return jsonText; - } - } - //GetE57Authorization - [WebMethod] - public void get_e57_authorization() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().GetE57Authorization(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void user_login() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().CheckUserLogin(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void change_password() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().ChangePassword(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_sub_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().GetSubUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_sub_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().UpdateSubUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_sub_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().AddSubUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void delete_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().DelUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_all_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().GetAllUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().UpdateUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void add_user() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().AddUser(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_user_points() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().UpdateUserPoints(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_user_points() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().GetUserPoints(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void update_user_balance() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().UpdateUserBalance(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - [WebMethod] - public void get_user_balance() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().GetUserBalance(jsontext); - - 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(); - } - - [WebMethod] - public void update_top_up_qrcode() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().UpdateTopUpQrcode(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void get_top_up_qrcode() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXUserManage().GetTopUpQrcode(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - - - [WebMethod] - public void add_mdy_oem() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOemManage().AddMdyOem(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void del_oem() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOemManage().DelOem(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void get_oem() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - result = new WXOemManage().GetOem(jsontext); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void oem_withdrawals() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - var request = jsontext.ParseToObject(); - result = new WXOemManage().OemWithdrawals(request); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void oem_settle_flows() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - var request = jsontext.ParseToObject(); - result = new WXOemManage().SettleOemFlows(request); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void apply_oem_withdrawal() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - var request = jsontext.ParseToObject(); - result = new WXOemManage().ApplyOemWithdrawal(request); - - Context.Response.Write(result); - Context.Response.End(); - } - [WebMethod] - public void oem_audit_withdrawal() - { - string jsontext = GetRequestJsonString(); - - var result = jsontext; - var request = jsontext.ParseToObject(); - result = new WXOemManage().AuditOemWithdrawal(request); - - Context.Response.Write(result); - Context.Response.End(); - } - } -}