移除Asmx文件 改为Controller API

This commit is contained in:
chfei committed 2026-09-14 18:31:36 +08:00
1 parent e48ee01201
commit 72f16034ac
27 files changed
+4270 -326

No files matched your search

@@ -0,0 +1,63 @@
using KJD_Web.BLL.WXXD;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Web;
using System.Web.Http;
using System.Web.Http.Controllers;
namespace KJD_Web.Controllers
{
public class AsmxApiController : ApiController
{
//public override System.Threading.Tasks.Task<HttpResponseMessage> ExecuteAsync(
//HttpControllerContext controllerContext,
//System.Threading.CancellationToken cancellationToken)
//{
// // 把 POST 请求的 HTTP 方法临时改成 GET,绕过动词匹配
// if (controllerContext.Request.Method == HttpMethod.Post)
// {
// controllerContext.Request.Method = HttpMethod.Get;
// }
// return base.ExecuteAsync(controllerContext, cancellationToken);
//}
protected 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;
}
}
protected IHttpActionResult JsonString(string result)
{
var response = Request.CreateResponse(HttpStatusCode.OK);
response.Content = new StringContent(result, Encoding.UTF8, "text/html");
return base.ResponseMessage(response);
}
}
}
@@ -0,0 +1,139 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers.BXX
{
[RoutePrefix("bxx_price")]
[Route("{action}")]
public class BXXPriceController : AsmxApiController
{
public IHttpActionResult get_price_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXPriceManage().GetPriceList(jsontext);
return JsonString(result);
}
public IHttpActionResult add_price()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXPriceManage().AddPrice(jsontext);
return JsonString(result);
}
public IHttpActionResult del_db_price()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXPriceManage().DelDbPrice(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_db_price()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXPriceManage().MdyDBPrice(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_purchase_price()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXPriceManage().MdyPurchasePrice(jsontext);
return JsonString(result);
}
public IHttpActionResult add_purchase_price()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXPriceManage().AddPurchasePrice(jsontext);
return JsonString(result);
}
public IHttpActionResult del_purchase_price()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXPriceManage().DelPurchasePrice(jsontext);
return JsonString(result);
}
public IHttpActionResult get_purchase_price_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXPriceManage().GetPurchasePriceList(jsontext);
return JsonString(result);
}
//AddExtCodePrice
public IHttpActionResult add_ext_code_price()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXPriceManage().AddExtCodePrice(jsontext);
return JsonString(result);
}
public IHttpActionResult get_ext_code_price_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXPriceManage().GetExtCodePriceList(jsontext);
return JsonString(result);
}
public IHttpActionResult del_db_ext_code_price()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXPriceManage().DelDbExtCodePrice(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_db_ext_code_price()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXPriceManage().MdyDBExtCodePrice(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,448 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers.BXX
{
[RoutePrefix("bxx_product")]
[Route("{action}")]
public class BXXProductController : AsmxApiController
{
public IHttpActionResult get_product_spu_id_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductSpuIdLst(jsontext);
return JsonString(result);
}
//AddProdDownSku
public IHttpActionResult add_prod_down_sku()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddProdDownSku(jsontext);
return JsonString(result);
}
public IHttpActionResult get_prod_down_sku_lst_by_sku_codes()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProdDownSkuLstBySkuCodes(jsontext);
return JsonString(result);
}
public IHttpActionResult get_product_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_product_detail_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductList(jsontext, true);
return JsonString(result);
}
public IHttpActionResult get_product_list_random()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductListRandom(jsontext);
return JsonString(result);
}
public IHttpActionResult add_prod_wx_complate()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddProdWXComplate(jsontext);
return JsonString(result);
}
public IHttpActionResult get_prod_wx_complate_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProdWXComplateList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_sku_replace_img_list_random()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetSkuReplaceImgListRandom(jsontext);
return JsonString(result);
}
public IHttpActionResult add_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddProduct(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().MdyProduct(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_violation_prod()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().MdyViolationProd(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_best_sale_prod()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().MdyBestSaleProd(jsontext);
return JsonString(result);
}
public IHttpActionResult del_db_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().DelDbProd(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_db_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().MdyDBProduct(jsontext);
return JsonString(result);
}
public IHttpActionResult get_product_groups()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductGroups(jsontext);
return JsonString(result);
}
public IHttpActionResult add_product_groups()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddProductGroup(jsontext);
return JsonString(result);
}
public IHttpActionResult del_product_groups()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().DelProductGroup(jsontext);
return JsonString(result);
}
public IHttpActionResult get_product_notes()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductNotes(jsontext);
return JsonString(result);
}
public IHttpActionResult add_product_notes()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddProductNotes(jsontext);
return JsonString(result);
}
public IHttpActionResult del_product_notes()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().DelProductNotes(jsontext);
return JsonString(result);
}
public IHttpActionResult get_pdd_product_cates()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductMainCates(jsontext);
return JsonString(result);
}
public IHttpActionResult get_product_cates()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProductCates(jsontext);
return JsonString(result);
}
public IHttpActionResult add_sku_img_replace()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddSkuImgReplace(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_sku_img_replace()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().MdySkuImgReplace(jsontext);
return JsonString(result);
}
public IHttpActionResult get_sku_img_replace_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetSkuImgReplaceList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_sku_img_replace_detail_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetSkuImgReplaceList(jsontext, true);
return JsonString(result);
}
//AddSkuImg
public IHttpActionResult add_sku_img()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddSkuImg(jsontext);
return JsonString(result);
}
public IHttpActionResult get_wx_tokens()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().E57GetWxTokens(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_api_get_all_cate()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().WxApiGetWxAllCate(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_api_category_classify()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().WxApiCategoryClassify(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_api_upload_image()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().WxApiUploadImage(jsontext);
return JsonString(result);
}
//AddJSTSku
public IHttpActionResult add_jst_sku()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddJSTSku(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_jst_sku()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().MdyJSTSku(jsontext);
return JsonString(result);
}
public IHttpActionResult get_jst_sku_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetJSTSkuList(jsontext);
return JsonString(result);
}
public IHttpActionResult set_random_company_product_config()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().SetRandomCompanyProductConfig(jsontext);
return JsonString(result);
}
public IHttpActionResult get_random_company_product_config()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetRandomCompanyProductConfig(jsontext);
return JsonString(result);
}
/// <summary>
/// 拼多多关联新增
/// </summary>
public IHttpActionResult add_relation()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddRelation(jsontext);
return JsonString(result);
}
/// <summary>
/// 拼多多关联获取
/// </summary>
public IHttpActionResult get_relation()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetRelation(jsontext);
return JsonString(result);
}
public IHttpActionResult add_mdy_jst_product_ban()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().AddMdyJstProductBan(jsontext);
return JsonString(result);
}
public IHttpActionResult get_jst_product_coid_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetJstProductCoidList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_jst_product_ban_platform_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetJstProductBanPlatformList(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,138 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers.BXX
{
[RoutePrefix("bxx_product_third")]
[Route("{action}")]
public class BXXProductThirdController : AsmxApiController
{
public IHttpActionResult get_product_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductThirdManage().GetProductList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_product_detail_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductThirdManage().GetProductList(jsontext, true);
return JsonString(result);
}
public IHttpActionResult add_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductThirdManage().AddProduct(jsontext);
return JsonString(result);
}
public IHttpActionResult del_db_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductThirdManage().DelDbProd(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_product_category()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductThirdManage().MdyProductCategory(jsontext);
return JsonString(result);
}
public IHttpActionResult add_user_select_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductThirdManage().AddUserSelectProduct(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_user_select_product_status()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductThirdManage().MdyUserSelectProductStatus(jsontext);
return JsonString(result);
}
public IHttpActionResult get_user_select_product_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductThirdManage().GetUserSelectProductList(jsontext);
return JsonString(result);
}
public IHttpActionResult admin_get_user_select_product_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductThirdManage().GetUserSelectProductList(jsontext, true);
return JsonString(result);
}
public IHttpActionResult del_select_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductThirdManage().DelSelectProd(jsontext);
return JsonString(result);
}
public IHttpActionResult set_select_product_sub_sa()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductThirdManage().SetSelectProductSubSa(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_product_select_notes()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductThirdManage().MdyProductSelectNotes(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,260 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers.BXX
{
[RoutePrefix("bxx_shop")]
[Route("{action}")]
public class BXXShopController : AsmxApiController
{
public IHttpActionResult get_pdd_client_info()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().GetPddClientInfo(jsontext);
return JsonString(result);
}
public IHttpActionResult get_shop_client_info()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().GetShopClientInfo(jsontext);
return JsonString(result);
}
//WXAddMdyShopClientInfo
public IHttpActionResult add_mdy_shop_client_info()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().AddMdyShopClientInfo(jsontext);
return JsonString(result);
}
public IHttpActionResult get_shop_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().GetShop(jsontext);
return JsonString(result);
}
public IHttpActionResult get_one_login_name_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().GetOneLoginNameShop(jsontext);
return JsonString(result);
}
public IHttpActionResult add_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().AddShop(jsontext);
return JsonString(result);
}
public IHttpActionResult del_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().DelShop(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().MdyShop(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_anti_content()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().MdyAntiContent(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_shop_cookie_and_login_status()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().MdyCookieAndLoginStatus(jsontext);
return JsonString(result);
}
public IHttpActionResult admin_get_shop_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().GetShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult sub_sa_get_select_prod_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().SubSaGetSelectProdShop(jsontext);
return JsonString(result);
}
public IHttpActionResult update_add_prod_remaining()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().UpdateAddProdRemaining(jsontext);
return JsonString(result);
}
public IHttpActionResult admin_mdy_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().MdyShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult admin_add_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().AddShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult admin_del_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().DelShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult set_shop_sub_sa()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().SetShopSubSa(jsontext);
return JsonString(result);
}
public IHttpActionResult e57_get_wx_tokens()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().E57GetWxTokens(jsontext);
return JsonString(result);
}
public IHttpActionResult e57_get_pdd_shop_token()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().E57GetPddShopToken(jsontext);
return JsonString(result);
}
public IHttpActionResult add_weidian_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().AddWeiDianShop(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_weidian_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().MdyWeiDianShop(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_weidian_shop_cookie()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().MdyWeiDianShopCookie(jsontext);
return JsonString(result);
}
public IHttpActionResult get_weidian_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().GetWeiDianShop(jsontext);
return JsonString(result);
}
public IHttpActionResult del_weidian_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXShopManage().DelWeiDianShop(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,189 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers.BXX
{
[RoutePrefix("bxx_user")]
[Route("{action}")]
public class BXXUserController : AsmxApiController
{
public IHttpActionResult user_login()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().CheckUserLogin(jsontext);
return JsonString(result);
}
public IHttpActionResult get_package_sign()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().GetPackageSign(jsontext);
return JsonString(result);
}
public IHttpActionResult change_password()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().ChangePassword(jsontext);
return JsonString(result);
}
public IHttpActionResult get_sub_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().GetSubUser(jsontext);
return JsonString(result);
}
public IHttpActionResult update_sub_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().UpdateSubUser(jsontext);
return JsonString(result);
}
public IHttpActionResult add_sub_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().AddSubUser(jsontext);
return JsonString(result);
}
public IHttpActionResult delete_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().DelUser(jsontext);
return JsonString(result);
}
public IHttpActionResult get_all_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().GetAllUser(jsontext);
return JsonString(result);
}
public IHttpActionResult update_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().UpdateUser(jsontext);
return JsonString(result);
}
public IHttpActionResult add_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().AddUser(jsontext);
return JsonString(result);
}
public IHttpActionResult update_scm121_cookie()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().UpdateScm121Cookie(jsontext);
return JsonString(result);
}
public IHttpActionResult get_scm121_cookie()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().GetScm121Cookie(jsontext);
return JsonString(result);
}
//AddBuyer
public IHttpActionResult add_buyer()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().AddBuyer(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_buyer()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().MdyBuyer(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_buyer_cookie()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().MdyBuyerCookie(jsontext);
return JsonString(result);
}
public IHttpActionResult get_buyer()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().GetBuyer(jsontext);
return JsonString(result);
}
public IHttpActionResult del_buyer()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXUserManage().DelBuyer(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,149 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers.DY
{
[RoutePrefix("dyxd_shop")]
[Route("{action}")]
public class DYShopController : AsmxApiController
{
public IHttpActionResult get_shop_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYShopManage().GetShop(jsontext);
return JsonString(result);
}
public IHttpActionResult get_one_login_name_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYShopManage().GetOneLoginNameShop(jsontext);
return JsonString(result);
}
public IHttpActionResult add_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYShopManage().AddShop(jsontext);
return JsonString(result);
}
public IHttpActionResult del_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYShopManage().DelShop(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYShopManage().MdyShop(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_shop_cookie_and_login_status()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYShopManage().MdyCookieAndLoginStatus(jsontext);
return JsonString(result);
}
public IHttpActionResult admin_get_shop_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYShopManage().GetShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult sub_sa_get_select_prod_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYShopManage().SubSaGetSelectProdShop(jsontext);
return JsonString(result);
}
public IHttpActionResult update_add_prod_remaining()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYShopManage().UpdateAddProdRemaining(jsontext);
return JsonString(result);
}
public IHttpActionResult admin_mdy_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYShopManage().MdyShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult admin_add_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYShopManage().AddShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult admin_del_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYShopManage().DelShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult set_shop_sub_sa()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYShopManage().SetShopSubSa(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,119 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers.DY
{
[RoutePrefix("dyxd_user")]
[Route("{action}")]
public class DYUserController : AsmxApiController
{
public IHttpActionResult user_login()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYUserManage().CheckUserLogin(jsontext);
return JsonString(result);
}
public IHttpActionResult get_package_sign()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYUserManage().GetPackageSign(jsontext);
return JsonString(result);
}
public IHttpActionResult change_password()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYUserManage().ChangePassword(jsontext);
return JsonString(result);
}
public IHttpActionResult get_sub_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYUserManage().GetSubUser(jsontext);
return JsonString(result);
}
public IHttpActionResult update_sub_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYUserManage().UpdateSubUser(jsontext);
return JsonString(result);
}
public IHttpActionResult add_sub_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYUserManage().AddSubUser(jsontext);
return JsonString(result);
}
public IHttpActionResult delete_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYUserManage().DelUser(jsontext);
return JsonString(result);
}
public IHttpActionResult get_all_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYUserManage().GetAllUser(jsontext);
return JsonString(result);
}
public IHttpActionResult update_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYUserManage().UpdateUser(jsontext);
return JsonString(result);
}
public IHttpActionResult add_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new DYUserManage().AddUser(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,103 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers
{
[RoutePrefix("order")]
[Route("{action}")]
public class OrderController : AsmxApiController
{
public IHttpActionResult add_order()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new OrderManage().AddOrder(jsontext);
return JsonString(result);
}
public IHttpActionResult get_order_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new OrderManage().GetOrderList(jsontext);
return JsonString(result);
}
//UpdateOrderStatus1
public IHttpActionResult update_order_status1()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new OrderManage().UpdateOrderStatus1(jsontext);
return JsonString(result);
}
//AddOrderCodeFile
public IHttpActionResult add_order_code_file()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new OrderManage().AddOrderCodeFile(jsontext);
return JsonString(result);
}
//SaveOrderCodeFileLink
public IHttpActionResult save_order_code_file_link()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new OrderManage().SaveOrderCodeFileLink(jsontext);
return JsonString(result);
}
//getOrderCodeFile
public IHttpActionResult get_order_code_file()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new OrderManage().getOrderCodeFile(jsontext);
return JsonString(result);
}
//UploadOrder
public IHttpActionResult upload_order()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new OrderManage().UploadOrder(jsontext);
return JsonString(result);
}
public IHttpActionResult update_order_status()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new OrderManage().UpdateOrderStatus(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,98 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers
{
[RoutePrefix("price")]
[Route("{action}")]
public class PriceController : AsmxApiController
{
public IHttpActionResult get_price_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new PriceManage().GetPriceList(jsontext);
return JsonString(result);
}
public IHttpActionResult add_price()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new PriceManage().AddPrice(jsontext);
return JsonString(result);
}
public IHttpActionResult del_db_price()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new PriceManage().DelDbPrice(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_db_price()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new PriceManage().MdyDBPrice(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_purchase_price()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new PriceManage().MdyPurchasePrice(jsontext);
return JsonString(result);
}
public IHttpActionResult add_purchase_price()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new PriceManage().AddPurchasePrice(jsontext);
return JsonString(result);
}
public IHttpActionResult del_purchase_price()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new PriceManage().DelPurchasePrice(jsontext);
return JsonString(result);
}
public IHttpActionResult get_purchase_price_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new PriceManage().GetPurchasePriceList(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,230 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers
{
[RoutePrefix("product")]
[Route("{action}")]
public class ProductController : AsmxApiController
{
public IHttpActionResult get_product_group_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().GetProductGroupList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_product_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().GetProductList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_product_detail_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().GetProductList(jsontext, true);
return JsonString(result);
}
public IHttpActionResult add_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().AddProduct(jsontext);
return JsonString(result);
}
public IHttpActionResult del_db_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().DelDbProd(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_db_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().MdyDBProduct(jsontext);
return JsonString(result);
}
public IHttpActionResult add_user_select_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().AddUserSelectProduct(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_user_select_product_status()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().MdyUserSelectProductStatus(jsontext);
return JsonString(result);
}
public IHttpActionResult get_user_select_product_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().GetUserSelectProductList(jsontext);
return JsonString(result);
}
public IHttpActionResult admin_get_user_select_product_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().GetUserSelectProductList(jsontext, true);
return JsonString(result);
}
public IHttpActionResult del_select_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().DelSelectProd(jsontext);
return JsonString(result);
}
public IHttpActionResult set_select_product_sub_sa()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().SetSelectProductSubSa(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_product_select_notes()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().MdyProductSelectNotes(jsontext);
return JsonString(result);
}
public IHttpActionResult get_select_prod_db_id_map_draft_id_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().GetSelectProdDbIdMapDraftIdList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_select_prod_map_up_spu_id_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().GetSelectProdMapUpSpuIdList(jsontext);
return JsonString(result);
}
public IHttpActionResult add_sku_image()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().AddSkuImg(jsontext);
return JsonString(result);
}
public IHttpActionResult del_sku_image()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().DelSkuImg(jsontext);
return JsonString(result);
}
public IHttpActionResult get_sku_image_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().GetSkuImgList(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_base64_img_url()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().MdyBase64ImgUrl(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_base64_img_use_count()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().MdyBase64ImgUseCount(jsontext);
return JsonString(result);
}
public IHttpActionResult add_cate_size_weight_config_v2()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().AddCateSizeWeightConfig(jsontext);
return JsonString(result);
}
public IHttpActionResult get_cate_size_weight_config_v2()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductManage().GetCateSizeWeightConfig(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,177 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers
{
[RoutePrefix("product_third")]
[Route("{action}")]
public class ProductThirdController : AsmxApiController
{
public IHttpActionResult get_product_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().GetProductList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_product_detail_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().GetProductList(jsontext, true);
return JsonString(result);
}
public IHttpActionResult get_product_empty_product_json_for_bak()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().GetProductListEmptyProductJsonForBak(jsontext, true);
return JsonString(result);
}
public IHttpActionResult get_product_detail_list_bak()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().GetProductListBak(jsontext, true);
return JsonString(result);
}
public IHttpActionResult add_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().AddProduct(jsontext);
return JsonString(result);
}
public IHttpActionResult del_db_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().DelDbProd(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_product_category()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().MdyProductCategory(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_db_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().MdyDBProduct(jsontext);
return JsonString(result);
}
public IHttpActionResult add_user_select_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().AddUserSelectProduct(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_user_select_product_status()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().MdyUserSelectProductStatus(jsontext);
return JsonString(result);
}
public IHttpActionResult get_user_select_product_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().GetUserSelectProductList(jsontext);
return JsonString(result);
}
public IHttpActionResult admin_get_user_select_product_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().GetUserSelectProductList(jsontext, true);
return JsonString(result);
}
public IHttpActionResult del_select_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().DelSelectProd(jsontext);
return JsonString(result);
}
public IHttpActionResult set_select_product_sub_sa()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().SetSelectProductSubSa(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_product_select_notes()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().MdyProductSelectNotes(jsontext);
return JsonString(result);
}
public IHttpActionResult get_select_prod_db_id_map_draft_id_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ProductThirdManage().GetSelectProdDbIdMapDraftIdList(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,199 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers
{
[RoutePrefix("shop")]
[Route("{action}")]
public class ShopController : AsmxApiController
{
public IHttpActionResult get_shop_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().GetShop(jsontext);
return JsonString(result);
}
public IHttpActionResult get_one_login_name_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().GetOneLoginNameShop(jsontext);
return JsonString(result);
}
public IHttpActionResult add_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().AddShop(jsontext);
return JsonString(result);
}
public IHttpActionResult del_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().DelShop(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().MdyShop(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_shop_cookie_and_login_status()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().MdyCookieAndLoginStatus(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_shop_ads_cookie_and_login_status()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().MdyAdsCookieAndLoginStatus(jsontext);
return JsonString(result);
}
public IHttpActionResult admin_get_shop_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().GetShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult sub_sa_get_select_prod_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().SubSaGetSelectProdShop(jsontext);
return JsonString(result);
}
public IHttpActionResult update_add_prod_remaining()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().UpdateAddProdRemaining(jsontext);
return JsonString(result);
}
public IHttpActionResult admin_mdy_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().MdyShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult admin_add_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().AddShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult admin_del_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().DelShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult set_shop_sub_sa()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().SetShopSubSa(jsontext);
return JsonString(result);
}
public IHttpActionResult get_shop_card_code_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().GetShopCardCodeList(jsontext);
return JsonString(result);
}
public IHttpActionResult create_shop_card_code()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().CreateShopCardCode(jsontext);
return JsonString(result);
}
public IHttpActionResult del_shop_card_code()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().DelShopCardCode(jsontext);
return JsonString(result);
}
///ActiveJitCardCode
public IHttpActionResult active_jit_card_code()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new ShopManage().ActiveJitCardCode(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,49 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers
{
[RoutePrefix("update")]
[Route("{action}")]
public class UpdateController : AsmxApiController
{
public IHttpActionResult get_update()
{
var jsontext = GetRequestJsonString();
var result = jsontext;
result = new UpdateManage().GetUpdate(jsontext);
return JsonString(result);
}
public IHttpActionResult get_update_new()
{
var jsontext = GetRequestJsonString();
var result = jsontext;
result = new UpdateManage().GetUpdateNew(jsontext);
return JsonString(result);
}
public IHttpActionResult get_wx_finder_order_update()
{
var jsontext = GetRequestJsonString();
var result = jsontext;
result = new UpdateManage().GetWxFindOrderUpdate(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,138 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers
{
[RoutePrefix("user")]
[Route("{action}")]
public class UserController : AsmxApiController
{
public IHttpActionResult user_login()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new UserManage().CheckUserLogin(jsontext);
return JsonString(result);
}
public IHttpActionResult get_package_sign()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new UserManage().GetPackageSign(jsontext);
return JsonString(result);
}
public IHttpActionResult is_get_return_package()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new UserManage().IsGetReturnPackage(jsontext);
return JsonString(result);
}
public IHttpActionResult change_password()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new UserManage().ChangePassword(jsontext);
return JsonString(result);
}
public IHttpActionResult get_sub_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new UserManage().GetSubUser(jsontext);
return JsonString(result);
}
public IHttpActionResult update_sub_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new UserManage().UpdateSubUser(jsontext);
return JsonString(result);
}
public IHttpActionResult add_sub_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new UserManage().AddSubUser(jsontext);
return JsonString(result);
}
public IHttpActionResult delete_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new UserManage().DelUser(jsontext);
return JsonString(result);
}
public IHttpActionResult get_all_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new UserManage().GetAllUser(jsontext);
return JsonString(result);
}
public IHttpActionResult update_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new UserManage().UpdateUser(jsontext);
return JsonString(result);
}
public IHttpActionResult add_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new UserManage().AddUser(jsontext);
return JsonString(result);
}
public IHttpActionResult get_user_amount()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new UserManage().GetUserAmount(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,309 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers.WX
{
[RoutePrefix("wxxd_order")]
[Route("{action}")]
public class WXOrderController : AsmxApiController
{
public IHttpActionResult get_erp_order_list()
{
return get_order_list();
}
public IHttpActionResult get_order_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXGetErpOrderList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_erp_order_item_list()
{
return get_order_item_list();
}
public IHttpActionResult get_order_item_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXGetErpOrderItemList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_erp_refund_list()
{
return get_refund_list();
}
public IHttpActionResult get_refund_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXGetErpRefundList(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_add_mdy_buy_prod_map_skus()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXAddMdyBuyProdMapSkus(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_buy_pord_map_skus()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXGetBuyPordMapSkus(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_add_mdy_buy_prod_map()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXAddMdyBuyProdMap(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_buy_prod_map()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXGetBuyPordMap(jsontext);
return JsonString(result);
}
/// <summary>
/// 获取中转仓订单信息
/// </summary>
public IHttpActionResult wx_get_transit_order()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXGetTransitOrder(jsontext);
return JsonString(result);
}
/// <summary>
/// 修改中转仓物流信息
/// </summary>
public IHttpActionResult wx_update_erp_order_express()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXUpdateErpOrderExpress(jsontext);
return JsonString(result);
}
/// <summary>
/// 修改中转仓取号状态 临时补救
/// </summary>
public IHttpActionResult wx_update_erp_allocated_order_no()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXUpdateErpAllocatedOrderNo(jsontext);
return JsonString(result);
}
/// <summary>
/// 删除中转仓指定订单 临时补救,慎用
/// </summary>
public IHttpActionResult wx_del_erp_transit_warehouse_order()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXDelErpTransitWarehouseOrder(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_update_erp_soft_remark()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXUpdateErpSoftRemark(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_update_erp_color_flag()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXUpdateErpColorFlag(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_update_erp_out_after_sale_status()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXUpdateErpOutAfterSaleStatus(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_add_mdy_buyer_order()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXAddMdyBuyerOrder(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_buyer_order_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXGetBuyerOrderList(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_add_mdy_buyer_after_sale()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXAddMdyBuyerAfterSale(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_buyer_after_sale_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXGetBuyerAfterSaleList(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_transit_warehouse_aftersale_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXGetTransitWarehouseAfterSaleList(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_update_abnormal_transit_order()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXUpdateAbnormalTransitOrder(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_update_transit_order_reject_status()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXUpdateTransitOrderRejectStatus(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_add_order_item_ext_info()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXAddOrderItemExtInfo(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_mdy_order_item_ext_info()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXMdyOrderItemExtInfo(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_order_item_ext_info()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXGetOrderItemExtInfoList(jsontext);
return JsonString(result);
}
//WXGetErpReturnOrderList
public IHttpActionResult wx_get_erp_return_order_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().WXGetErpReturnOrderList(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_task_status_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOrderManage().GetWxTaskStatus(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,397 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers.WX
{
[RoutePrefix("wxxd_product")]
[Route("{action}")]
public class WXProductController : AsmxApiController
{
public IHttpActionResult get_pdd_product_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXGetPDDProductList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_pdd_product_detail_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXGetPDDProductList(jsontext, true);
return JsonString(result);
}
public IHttpActionResult get_hot_product_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXGetHotProductList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_hot_product_detail_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXGetHotProductList(jsontext, true);
return JsonString(result);
}
public IHttpActionResult wx_get_product_latest_buy_amount_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXGetProductLatestBuyAmountList(jsontext, true);
return JsonString(result);
}
public IHttpActionResult get_pdd_product_list_random()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXGetPDDProductListRandom(jsontext);
return JsonString(result);
}
public IHttpActionResult get_pdd_prod_wx_complate_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().GetProdWXComplateList(jsontext);
return JsonString(result);
}
public IHttpActionResult get_pdd_product_groups()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXGetPDDProductGroups(jsontext);
return JsonString(result);
}
public IHttpActionResult get_pdd_product_cates()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXGetPDDProductCates(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_pdd_product()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXMdyPDDProduct(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_best_sale_prod()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().MdyBestSaleProd(jsontext);
return JsonString(result);
}
public IHttpActionResult set_random_company_product_config()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().SetRandomCompanyProductConfig(jsontext);
return JsonString(result);
}
public IHttpActionResult get_random_company_product_config()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().GetRandomCompanyProductConfig(jsontext);
return JsonString(result);
}
public IHttpActionResult add_secret_spu_id_shop_id_map()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXAddSecretSpuIdShopIdMap(jsontext);
return JsonString(result);
}
//WXAddSecretIdUpMap
public IHttpActionResult wx_add_secret_id_up_map()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXAddSecretIdUpMap(jsontext);
return JsonString(result);
}
/// <summary>
/// 根据聚水潭加密商品编号(货号)查询所有上传过的店铺id 260224 未测试
/// </summary>
public IHttpActionResult get_secret_spu_id_shop_id_map_List()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXGetSecretSpuIdShopIdMapList(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_add_mdy_after_sale()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXAddMdyAfterSale(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_after_sale()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXGetAfterSale(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_random_after_sale_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXGetRandomAfterSaleList(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_after_sale_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXGetAfterSaleList(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_del_address()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXDelAddress(jsontext);
return JsonString(result);
}
//WXAddMdyAfterSale
public IHttpActionResult wx_add_mdy_shipping_template()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXAddMdyShippingTemplate(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_shipping_template()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXGetShippingTemplate(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_add_mdy_commission_rate()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXAddMdyCommissionRate(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_commission_rate()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXGetCommissionRate(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_add_mdy_qualification_image()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXAddMdyQualificationImage(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_qualification_image()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXGetQualificationImage(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_del_qualification_image()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().WXDelQualificationImage(jsontext);
return JsonString(result);
}
public IHttpActionResult e57_get_freight_template()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().E57GetFreightTemplate(jsontext);
return JsonString(result);
}
public IHttpActionResult e57_after_sale()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXProductManage().E57AfterSale(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_api_get_all_cate()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().WxApiGetWxAllCate(jsontext);
return JsonString(result);
}
/// <summary>
/// 搜索代发
/// </summary>
public IHttpActionResult wx_api_dropship_search()
{
string jsontext = GetRequestJsonString();
var result = new BXXProductManage().WxApiDropshipSearch(jsontext);
return JsonString(result);
}
/// <summary>
/// 添加代发
/// </summary>
public IHttpActionResult wx_api_dropship_assign()
{
string jsontext = GetRequestJsonString();
var result = new BXXProductManage().WxApiDropshipAssign(jsontext);
return JsonString(result);
}
/// <summary>
/// 添加代发
/// </summary>
public IHttpActionResult wx_api_dropship_cancel()
{
string jsontext = GetRequestJsonString();
var result = new BXXProductManage().WxApiDropshipCancel(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_api_category_classify()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().WxApiCategoryClassify(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_api_upload_image()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().WxApiUploadImage(jsontext);
return JsonString(result);
}
public IHttpActionResult is_get_wx_recommend_hot_prod()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new BXXProductManage().IsGetWXRecommendHotProd(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,486 @@
using KJD_Web.BLL.WXXD;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Contexts;
using System.Web;
using System.Web.Http;
using System.Web.Services;
namespace KJD_Web.Controllers.WX
{
[RoutePrefix("wxxd_shop")]
[Route("{action}")]
public class WXShopController:AsmxApiController
{
public IHttpActionResult get_shop_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().GetShop(jsontext);
return JsonString(result);
}
/// <summary>
/// 获取店铺erp端账户
/// </summary>
public IHttpActionResult get_shop_erp_merchant()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().GetShopErpMerchant(jsontext);
return JsonString(result);
}
public IHttpActionResult get_one_login_name_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().GetOneLoginNameShop(jsontext);
return JsonString(result);
}
public IHttpActionResult get_one_shop_cookie_by_app_id()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().GetOneShopCookieByAppId(jsontext);
return JsonString(result);
}
public IHttpActionResult add_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().AddShop(jsontext);
return JsonString(result);
}
public IHttpActionResult del_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().DelShop(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().MdyShop(jsontext);
return JsonString(result);
}
public IHttpActionResult mdy_shop_cookie_and_login_status()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().MdyCookieAndLoginStatus(jsontext);
return JsonString(result);
}
public IHttpActionResult admin_get_shop_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().GetShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult sub_sa_get_select_prod_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().SubSaGetSelectProdShop(jsontext);
return JsonString(result);
}
public IHttpActionResult update_add_prod_remaining()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().UpdateAddProdRemaining(jsontext);
return JsonString(result);
}
public IHttpActionResult admin_mdy_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().MdyShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult admin_add_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().AddShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult admin_del_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().DelShop(jsontext, true);
return JsonString(result);
}
public IHttpActionResult set_shop_sub_sa()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().SetShopSubSa(jsontext);
return JsonString(result);
}
public IHttpActionResult add_waybill()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXExpressOptimizeManage().AddWaybill(jsontext);
return JsonString(result);
}
public IHttpActionResult del_waybill()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXExpressOptimizeManage().DelWaybill(jsontext);
return JsonString(result);
}
public IHttpActionResult get_waybill()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXExpressOptimizeManage().GetWayBill(jsontext);
return JsonString(result);
}
public IHttpActionResult get_waybill_no_user_name()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXExpressOptimizeManage().GetWayBill(jsontext, true);
return JsonString(result);
}
public IHttpActionResult select_and_set_waybill()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXExpressOptimizeManage().SelectAndSetWaybill(jsontext);
return JsonString(result);
}
public IHttpActionResult select_waybill()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXExpressOptimizeManage().SelectWaybill(jsontext);
return JsonString(result);
}
/// <summary>
/// 标记已正式使用的运单号
/// </summary>
public IHttpActionResult update_used_waybill()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXExpressOptimizeManage().UpdateUsedWaybill(jsontext);
return JsonString(result);
}
public IHttpActionResult add_mdy_express_optimize_rst()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXExpressOptimizeManage().AddMdyExpressOptimizeRst(jsontext);
return JsonString(result);
}
public IHttpActionResult get_express_optimize_rst()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXExpressOptimizeManage().GetExpressOptimizeRst(jsontext);
return JsonString(result);
}
public IHttpActionResult add_mdy_express_optimize_remark()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXExpressOptimizeManage().AddMdyExpressOptimizeRemark(jsontext);
return JsonString(result);
}
public IHttpActionResult get_express_optimize_remark()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXExpressOptimizeManage().GetExpressOptimizeRemark(jsontext);
return JsonString(result);
}
/// <summary>
/// 修改店铺默认(售后)地址
/// </summary>
public IHttpActionResult wx_add_mdy_shop_default_address()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().WXAddMdyShopDefaultAddress(jsontext);
return JsonString(result);
}
/// <summary>
/// 查询店铺默认(售后)地址
/// </summary>
public IHttpActionResult wx_get_shop_default_address_list()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().WXGetShopDefaultAddressList(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_del_shop_default_address()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().WXDelShopDefaultAddress(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_add_mdy_order_address()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().WXAddMdyOrderDecryptAddress(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_order_address()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().WXGetOrderDecryptAddress(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_add_mdy_buy_url_notes()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().WXAddMdyBuyUrlNotes(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_buy_url_notes()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().WXGetBuyUrlNotes(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_add_mdy_29wx_pdd_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().WXAddMdy29WxPddShop(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_mdy_29wx_pdd_cookie_and_login_status()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().WXMdy29WxPddCookieAndLoginStatus(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_del_29wx_pdd_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().WXDel29WxPddShop(jsontext);
return JsonString(result);
}
public IHttpActionResult wx_get_29wx_pdd_shop()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().WXGet29WxPddShop(jsontext);
return JsonString(result);
}
public IHttpActionResult e57_get_wx_tokens()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().E57GetWxTokens(jsontext);
return JsonString(result);
}
public IHttpActionResult e57_get_wx_shop_token()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopManage().E57GetWxShopToken(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,29 @@
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;
using System.Web.Http;
namespace KJD_Web.Controllers.WX
{
[RoutePrefix("wxxd_shop_revenue_statistics")]
[Route("{action}")]
public class WXShopRevenueStatisticsController : AsmxApiController
{
public IHttpActionResult get_shop_order_amount()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXShopRevenueStatisticsManage().GetShopOrderAmountRange(jsontext);
return JsonString(result);
}
}
}
@@ -0,0 +1,319 @@
using KJD_Web.BLL.WXXD;
using NaiBa.Util.Extension;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Runtime.Remoting.Contexts;
using System.Text;
using System.Web;
using System.Web.Http;
using System.Web.Services;
using Ubiety.Dns.Core;
namespace KJD_Web.Controllers
{
[RoutePrefix("wxxd_user")]
[Route("{action}")]
public class WXUserController : AsmxApiController
{
//GetE57Authorization
public IHttpActionResult get_e57_authorization()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().GetE57Authorization(jsontext);
return JsonString(result);
}
public IHttpActionResult user_login()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().CheckUserLogin(jsontext);
return JsonString(result);
}
public IHttpActionResult change_password()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().ChangePassword(jsontext);
return JsonString(result);
}
public IHttpActionResult get_sub_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().GetSubUser(jsontext);
return JsonString(result);
}
public IHttpActionResult update_sub_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().UpdateSubUser(jsontext);
return JsonString(result);
}
public IHttpActionResult add_sub_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().AddSubUser(jsontext);
return JsonString(result);
}
public IHttpActionResult delete_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().DelUser(jsontext);
return JsonString(result);
}
public IHttpActionResult get_all_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().GetAllUser(jsontext);
return JsonString(result);
}
public IHttpActionResult update_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().UpdateUser(jsontext);
return JsonString(result);
}
public IHttpActionResult add_user()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().AddUser(jsontext);
return JsonString(result);
}
public IHttpActionResult update_user_points()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().UpdateUserPoints(jsontext);
return JsonString(result);
}
public IHttpActionResult get_user_points()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().GetUserPoints(jsontext);
return JsonString(result);
}
public IHttpActionResult update_user_balance()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().UpdateUserBalance(jsontext);
return JsonString(result);
}
public IHttpActionResult get_user_balance()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().GetUserBalance(jsontext);
return JsonString(result);
}
public IHttpActionResult get_wx_sale_assistant_cookie()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().GetWxSaleAssistantCookie(jsontext);
return JsonString(result);
}
public IHttpActionResult update_wx_sale_assistant_cookie()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().UpdateWxSaleAssistantCookie(jsontext);
return JsonString(result);
}
public IHttpActionResult update_top_up_qrcode()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().UpdateTopUpQrcode(jsontext);
return JsonString(result);
}
public IHttpActionResult get_top_up_qrcode()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXUserManage().GetTopUpQrcode(jsontext);
return JsonString(result);
}
public IHttpActionResult add_mdy_oem()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOemManage().AddMdyOem(jsontext);
return JsonString(result);
}
public IHttpActionResult del_oem()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOemManage().DelOem(jsontext);
return JsonString(result);
}
public IHttpActionResult get_oem()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
result = new WXOemManage().GetOem(jsontext);
return JsonString(result);
}
public IHttpActionResult oem_withdrawals()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
var request = jsontext.ParseToObject<KJD_Web.BLL.WXXD.Requests.OemWithdrawalQueryRequest>();
result = new WXOemManage().OemWithdrawals(request);
return JsonString(result);
}
public IHttpActionResult oem_settle_flows()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
var request = jsontext.ParseToObject<KJD_Web.BLL.WXXD.Requests.SignRequestBase>();
result = new WXOemManage().SettleOemFlows(request);
return JsonString(result);
}
public IHttpActionResult apply_oem_withdrawal()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
var request = jsontext.ParseToObject<KJD_Web.BLL.WXXD.Requests.OemWithdrawalRequest>();
result = new WXOemManage().ApplyOemWithdrawal(request);
return JsonString(result);
}
public IHttpActionResult oem_audit_withdrawal()
{
string jsontext = GetRequestJsonString();
var result = jsontext;
var request = jsontext.ParseToObject<KJD_Web.BLL.WXXD.Requests.OemWithdrawalAuditRequest>();
result = new WXOemManage().AuditOemWithdrawal(request);
return JsonString(result);
}
}
}
@@ -1,54 +0,0 @@
//using KJD_Web.BLL.WXXD;
//using System;
//using System.Collections.Generic;
//using System.IO;
//using System.Linq;
//using System.Runtime.Remoting.Contexts;
//using System.Text;
//using System.Web;
//using System.Web.Http;
//namespace KJD_Web.Controllers
//{
// [RoutePrefix("wxxd_user")]
// [Route("{action}")]
// public class WXUserController : ApiController
// {
// 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;
// }
// }
// public string user_login()
// {
// string jsontext = GetRequestJsonString();
// var result = jsontext;
// result = new WXUserManage().CheckUserLogin(jsontext);
// return result;
// }
// }
//}
+32
View File
@@ -0,0 +1,32 @@
using KJD_Web.Controllers;
using System.Linq;
using System.Net.Http;
using System.Web.Http.Controllers;
namespace KJD_Web
{
public class GetPostActionSelector : ApiControllerActionSelector
{
public override ILookup<string, HttpActionDescriptor> GetActionMapping(
HttpControllerDescriptor controllerDescriptor)
{
var mapping = base.GetActionMapping(controllerDescriptor);
if (mapping == null)
{
return null;
}
if (typeof(AsmxApiController).IsAssignableFrom(controllerDescriptor.ControllerType))
{
foreach (var action in mapping.SelectMany(group => group).Distinct())
{
action.SupportedHttpMethods.Clear();
action.SupportedHttpMethods.Add(HttpMethod.Get);
action.SupportedHttpMethods.Add(HttpMethod.Post);
}
}
return mapping;
}
}
}
+104 -121
View File
@@ -104,149 +104,132 @@ namespace KJD_Web
protected void Application_BeginRequest(object sender, EventArgs e)
{
if (Context.Request.Path == "/")
{
Context.Response.ContentType = "text/plain";
Context.Response.Write("Service is running.");
Context.Response.End();
}
string hPath = Request.Url.LocalPath.ToString();
if (!hPath.Contains(".asmx") && hPath.Contains("/user/"))
{
hPath = hPath.Replace("/user/", "/UserService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/shop/"))
{
hPath = hPath.Replace("/shop/", "/ShopService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/update/"))
{
hPath = hPath.Replace("/update/", "/UpdateService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/order/"))
{
hPath = hPath.Replace("/order/", "/OrderService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/product/"))
{
hPath = hPath.Replace("/product/", "/ProductService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/product_third/"))
{
hPath = hPath.Replace("/product_third/", "/ProductThirdService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/price/"))
{
hPath = hPath.Replace("/price/", "/PriceService.asmx/");
Context.RewritePath(hPath);
}
//if (!hPath.Contains(".asmx") && hPath.Contains("/user/"))
//{
//hPath = hPath.Replace("/user/", "/UserService.asmx/");
//Context.RewritePath(hPath);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/shop/"))
//{
//hPath = hPath.Replace("/shop/", "/ShopService.asmx/");
//Context.RewritePath(hPath);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/update/"))
//{
//hPath = hPath.Replace("/update/", "/UpdateService.asmx/");
//Context.RewritePath(hPath);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/order/"))
//{
//hPath = hPath.Replace("/order/", "/OrderService.asmx/");
//Context.RewritePath(hPath);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/product/"))
//{
//hPath = hPath.Replace("/product/", "/ProductService.asmx/");
//Context.RewritePath(hPath);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/product_third/"))
//{
//hPath = hPath.Replace("/product_third/", "/ProductThirdService.asmx/");
//Context.RewritePath(hPath);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/price/"))
//{
//hPath = hPath.Replace("/price/", "/PriceService.asmx/");
//Context.RewritePath(hPath);
//}
if (!hPath.Contains(".asmx") && hPath.Contains("/bxx_user/"))
{
hPath = hPath.Replace("/bxx_user/", "/BXXUserService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/bxx_shop/"))
{
hPath = hPath.Replace("/bxx_shop/", "/BXXShopService.asmx/");
Context.RewritePath(hPath);
}
//if (!hPath.Contains(".asmx") && hPath.Contains("/bxx_user/"))
//{
//hPath = hPath.Replace("/bxx_user/", "/BXXUserService.asmx/");
//Context.RewritePath(hPath);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/bxx_shop/"))
//{
//hPath = hPath.Replace("/bxx_shop/", "/BXXShopService.asmx/");
//Context.RewritePath(hPath);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/update/"))
//{
// hPath = hPath.Replace("/update/", "/UpdateService.asmx/");
// Context.RewritePath(hPath);
//}
else if (!hPath.Contains(".asmx") && hPath.Contains("/bxx_product/"))
{
hPath = hPath.Replace("/bxx_product/", "/BXXProductService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/bxx_product_third/"))
{
hPath = hPath.Replace("/bxx_product_third/", "/BXXProductThirdService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/bxx_price/"))
{
hPath = hPath.Replace("/bxx_price/", "/BXXPriceService.asmx/");
Context.RewritePath(hPath);
}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/bxx_product/"))
//{
//hPath = hPath.Replace("/bxx_product/", "/BXXProductService.asmx/");
//Context.RewritePath(hPath);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/bxx_product_third/"))
//{
//hPath = hPath.Replace("/bxx_product_third/", "/BXXProductThirdService.asmx/");
//Context.RewritePath(hPath);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/bxx_price/"))
//{
//hPath = hPath.Replace("/bxx_price/", "/BXXPriceService.asmx/");
//Context.RewritePath(hPath);
//}
if (!hPath.Contains(".asmx") && hPath.Contains("/dyxd_user/"))
{
hPath = hPath.Replace("/dyxd_user/", "/DYUserService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/dyxd_shop/"))
{
hPath = hPath.Replace("/dyxd_shop/", "/DYShopService.asmx/");
Context.RewritePath(hPath);
}
//if (!hPath.Contains(".asmx") && hPath.Contains("/dyxd_user/"))
//{
//hPath = hPath.Replace("/dyxd_user/", "/DYUserService.asmx/");
//Context.RewritePath(hPath);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/dyxd_shop/"))
//{
//hPath = hPath.Replace("/dyxd_shop/", "/DYShopService.asmx/");
//Context.RewritePath(hPath);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/update/"))
//{
// hPath = hPath.Replace("/update/", "/UpdateService.asmx/");
// Context.RewritePath(hPath);
//}
else if (!hPath.Contains(".asmx") && hPath.Contains("/dyxd_product/"))
{
hPath = hPath.Replace("/dyxd_product/", "/DYProductService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/dyxd_product_third/"))
{
hPath = hPath.Replace("/dyxd_product_third/", "/DYProductThirdService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/dyxd_price/"))
{
hPath = hPath.Replace("/dyxd_price/", "/DYPriceService.asmx/");
Context.RewritePath(hPath);
}
if (!hPath.Contains(".asmx") && hPath.Contains("/wxxd_user/"))
{
hPath = hPath.Replace("/wxxd_user/", "/WXUserService.asmx/");
Context.RewritePath(hPath, false);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/wxxd_shop/"))
{
hPath = hPath.Replace("/wxxd_shop/", "/WXShopService.asmx/");
Context.RewritePath(hPath);
}
//if (!hPath.Contains(".asmx") && hPath.Contains("/wxxd_user/"))
//{
// //hPath = hPath.Replace("/wxxd_user/", "/WXUserService.asmx/");
// //Context.RewritePath(hPath, false);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/wxxd_shop/"))
//{
// hPath = hPath.Replace("/wxxd_shop/", "/WXShopService.asmx/");
// Context.RewritePath(hPath);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/update/"))
//{
// hPath = hPath.Replace("/update/", "/UpdateService.asmx/");
// Context.RewritePath(hPath);
//}
else if (!hPath.Contains(".asmx") && hPath.Contains("/wxxd_product/"))
{
hPath = hPath.Replace("/wxxd_product/", "/WXProductService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/wxxd_product_third/"))
{
hPath = hPath.Replace("/wxxd_product_third/", "/WXProductThirdService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/wxxd_price/"))
{
hPath = hPath.Replace("/wxxd_price/", "/WXPriceService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/wxxd_order/"))
{
hPath = hPath.Replace("/wxxd_order/", "/WXOrderService.asmx/");
Context.RewritePath(hPath);
}
else if (!hPath.Contains(".asmx") && hPath.Contains("/wxxd_shop_revenue_statistics/"))
{
hPath = hPath.Replace("/wxxd_shop_revenue_statistics/", "/WXShopRevenueStatistics.asmx/");
Context.RewritePath(hPath);
}
//if (!hPath.Contains(".asmx") && hPath.Contains("/wxxd_product/"))
//{
//hPath = hPath.Replace("/wxxd_product/", "/WXProductService.asmx/");
//Context.RewritePath(hPath);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/wxxd_order/"))
//{
//hPath = hPath.Replace("/wxxd_order/", "/WXOrderService.asmx/");
//Context.RewritePath(hPath);
//}
//else if (!hPath.Contains(".asmx") && hPath.Contains("/wxxd_shop_revenue_statistics/"))
//{
//hPath = hPath.Replace("/wxxd_shop_revenue_statistics/", "/WXShopRevenueStatistics.asmx/");
//Context.RewritePath(hPath);
//}
// 请求录制:捕获请求链接与请求内容,用于迁移后的回放校验
//try { ApiRequestLogger.BeginRequest(Context); } catch { }
}
@@ -277,4 +260,4 @@ namespace KJD_Web
}
}
}
}
+21 -101
View File
@@ -148,29 +148,9 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="WXOrderService.asmx" />
<Content Include="Upload\Prod\WXProdHot.aspx" />
<Content Include="Upload\Prod\WXProd.aspx" />
<Content Include="WXProductService.asmx" />
<Content Include="WXShopService.asmx" />
<Content Include="DYShopService.asmx" />
<Content Include="WXShopRevenueStatistics.asmx" />
<Content Include="WXUserService.asmx" />
<Content Include="DYUserService.asmx" />
<Content Include="Global.asax" />
<Content Include="BXXPriceService.asmx" />
<Content Include="PriceService.asmx" />
<Content Include="BXXProductService.asmx" />
<Content Include="BXXProductThirdService.asmx" />
<Content Include="OrderService.asmx" />
<Content Include="ProductThirdService.asmx" />
<Content Include="ProductService.asmx" />
<Content Include="BXXShopService.asmx" />
<Content Include="ShopService.asmx" />
<Content Include="UpdateService.asmx" />
<Content Include="ToolService.asmx" />
<Content Include="BXXUserService.asmx" />
<Content Include="UserService.asmx" />
<Content Include="Web.config" />
</ItemGroup>
<ItemGroup>
@@ -202,8 +182,27 @@
<Compile Include="BLL\WXXD\WXShopManage.cs" />
<Compile Include="BLL\WXXD\WXShopRevenueStatisticsManage.cs" />
<Compile Include="BLL\WXXD\WXUserManage.cs" />
<Compile Include="Controllers\AsmxApiController.cs" />
<Compile Include="Controllers\ImageCacheController.cs" />
<Compile Include="Controllers\WXUserController.cs" />
<Compile Include="Controllers\WX\WXShopController.cs" />
<Compile Include="Controllers\WX\WXUserController.cs" />
<Compile Include="Controllers\WX\WXShopRevenueStatisticsController.cs" />
<Compile Include="Controllers\WX\WXOrderController.cs" />
<Compile Include="Controllers\WX\WXProductController.cs" />
<Compile Include="Controllers\DY\DYShopController.cs" />
<Compile Include="Controllers\DY\DYUserController.cs" />
<Compile Include="Controllers\BXX\BXXPriceController.cs" />
<Compile Include="Controllers\BXX\BXXProductThirdController.cs" />
<Compile Include="Controllers\BXX\BXXProductController.cs" />
<Compile Include="Controllers\BXX\BXXShopController.cs" />
<Compile Include="Controllers\BXX\BXXUserController.cs" />
<Compile Include="Controllers\PriceController.cs" />
<Compile Include="Controllers\ProductThirdController.cs" />
<Compile Include="Controllers\ProductController.cs" />
<Compile Include="Controllers\OrderController.cs" />
<Compile Include="Controllers\UpdateController.cs" />
<Compile Include="Controllers\ShopController.cs" />
<Compile Include="Controllers\UserController.cs" />
<Compile Include="DependencyInjection\IScopedDependency.cs" />
<Compile Include="DependencyInjection\ISingletonDependency.cs" />
<Compile Include="DependencyInjection\ITransientDependency.cs" />
@@ -247,11 +246,8 @@
<Compile Include="NotFoundMessageFilter.cs" />
<Compile Include="Services\ImageCacheService.cs" />
<Compile Include="Utils\ApiRequestLogger.cs" />
<Compile Include="GetPostActionSelector.cs" />
<Compile Include="WebApiConfig.cs" />
<Compile Include="WXOrderService.asmx.cs">
<DependentUpon>WXOrderService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="Upload\Prod\BaseClass.cs" />
<Compile Include="Upload\Prod\BaseWxProd.cs" />
<Compile Include="Upload\Prod\WXProdHot.aspx.cs">
@@ -270,30 +266,6 @@
</Compile>
<Compile Include="Utils\HttpUtils.cs" />
<Compile Include="Utils\RandomUtils.cs" />
<Compile Include="WXProductService.asmx.cs">
<DependentUpon>WXProductService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="WXShopService.asmx.cs">
<DependentUpon>WXShopService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="DYShopService.asmx.cs">
<DependentUpon>DYShopService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="WXShopRevenueStatistics.asmx.cs">
<DependentUpon>WXShopRevenueStatistics.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="WXUserService.asmx.cs">
<DependentUpon>WXUserService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="DYUserService.asmx.cs">
<DependentUpon>DYUserService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
@@ -310,59 +282,7 @@
<Compile Include="Model\SkuImgResult.cs" />
<Compile Include="Model\TemuDBOrderInfo.cs" />
<Compile Include="Model\UserLoginResultParam.cs" />
<Compile Include="BXXPriceService.asmx.cs">
<DependentUpon>BXXPriceService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="PriceService.asmx.cs">
<DependentUpon>PriceService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="BXXProductService.asmx.cs">
<DependentUpon>BXXProductService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="BXXProductThirdService.asmx.cs">
<DependentUpon>BXXProductThirdService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="OrderService.asmx.cs">
<DependentUpon>OrderService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="ProductThirdService.asmx.cs">
<DependentUpon>ProductThirdService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ProductService.asmx.cs">
<DependentUpon>ProductService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="BXXShopService.asmx.cs">
<DependentUpon>BXXShopService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="ShopService.asmx.cs">
<DependentUpon>ShopService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="UpdateService.asmx.cs">
<DependentUpon>UpdateService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="ToolService.asmx.cs">
<DependentUpon>ToolService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="BXXUserService.asmx.cs">
<DependentUpon>BXXUserService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="UserService.asmx.cs">
<DependentUpon>UserService.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="Utils\EncrypUtil.cs" />
<Compile Include="Utils\Extension\Extension.Convert.cs" />
<Compile Include="Utils\Extension\Extension.Enum.cs" />
+53 -33
View File
@@ -1,30 +1,30 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<!--
有关如何配置 ASP.NET 应用程序的详细信息,请访问
https://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
<add name="ConnKJD" connectionString="Max Pool Size=512;Database='kjd';Data Source='nj-cynosdbmysql-grp-hl51pkfr.sql.tencentcdb.com';Port=27660;User Id='kjd';Password='Temukjd0625';Charset=utf8mb4;"/>
<add name="ConnKJD" connectionString="Max Pool Size=512;Database='kjd';Data Source='nj-cynosdbmysql-grp-hl51pkfr.sql.tencentcdb.com';Port=27660;User Id='kjd';Password='Temukjd0625';Charset=utf8mb4;" />
<!--<add name="ConnKJD" connectionString="Server=localhost;Port=3306;Database=mysql;Uid=root;Pwd=123456;"/>-->
<add name="ConnKJDBAK" connectionString="Max Pool Size=512;Database='kjd';Data Source='nj-cynosdbmysql-grp-9s7x16mt.sql.tencentcdb.com';Port=24049;User Id='kjdbak';Password='Temukjd0126';Charset=utf8mb4;"/>
<add name="UpdateVersion" connectionString="99999"/>
<add name="UpdateFileDir" connectionString="C:\inetpub\wwwroot\kjd_update"/>
<add name="UpdateNewUrl" connectionString="http://weidian.e57.cn/kjd_update/"/>
<add name="UpdateExe" connectionString="http://1.13.195.131:9000/Download/Update.exe"/>
<add name="UpdateExeChk" connectionString="CE4A009B7AA330314F03EEA0C3AB23F9"/>
<add name="LowVersion" connectionString="523"/>
<add name="LimitVersion" connectionString="823"/>
<add name="GetReturnPackage" connectionString="true"/>
<add name="GetWXRecommendHotProd" connectionString="true"/>
<add name="GetWXRecommendHotProdOncePerDay" connectionString="false"/>
<add name="GetWXRecommendHotProdMinViewUv" connectionString="200"/>
<add name="GetWXRecommendHotProdInterval" connectionString="3"/>
<add name="IsKeepBase64UploadImgFile" connectionString="0"/>
<add name="UpdateWxFindOrderFileDir" connectionString="C:\inetpub\wwwroot\find_order_update"/>
<add name="UpdateWxFindOrderUrl" connectionString="http://weidian.e57.cn/find_order_update/"/>
<add name="WxFindOrderLimitVersion" connectionString="172"/>
<add name="WxFindOrderLowVersion" connectionString="99"/>
<add name="ConnKJDBAK" connectionString="Max Pool Size=512;Database='kjd';Data Source='nj-cynosdbmysql-grp-9s7x16mt.sql.tencentcdb.com';Port=24049;User Id='kjdbak';Password='Temukjd0126';Charset=utf8mb4;" />
<add name="UpdateVersion" connectionString="99999" />
<add name="UpdateFileDir" connectionString="C:\inetpub\wwwroot\kjd_update" />
<add name="UpdateNewUrl" connectionString="http://weidian.e57.cn/kjd_update/" />
<add name="UpdateExe" connectionString="http://1.13.195.131:9000/Download/Update.exe" />
<add name="UpdateExeChk" connectionString="CE4A009B7AA330314F03EEA0C3AB23F9" />
<add name="LowVersion" connectionString="523" />
<add name="LimitVersion" connectionString="823" />
<add name="GetReturnPackage" connectionString="true" />
<add name="GetWXRecommendHotProd" connectionString="true" />
<add name="GetWXRecommendHotProdOncePerDay" connectionString="false" />
<add name="GetWXRecommendHotProdMinViewUv" connectionString="200" />
<add name="GetWXRecommendHotProdInterval" connectionString="3" />
<add name="IsKeepBase64UploadImgFile" connectionString="0" />
<add name="UpdateWxFindOrderFileDir" connectionString="C:\inetpub\wwwroot\find_order_update" />
<add name="UpdateWxFindOrderUrl" connectionString="http://weidian.e57.cn/find_order_update/" />
<add name="WxFindOrderLimitVersion" connectionString="172" />
<add name="WxFindOrderLowVersion" connectionString="99" />
</connectionStrings>
<!--
有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
@@ -35,38 +35,58 @@
</system.Web>
-->
<system.web>
<compilation debug="true" targetFramework="4.6.2"/>
<compilation debug="true" targetFramework="4.6.2" />
<!--<customErrors mode="Off"/>-->
<httpRuntime targetFramework="4.5.2" requestValidationMode="2.0"/>
<httpRuntime targetFramework="4.5.2" requestValidationMode="2.0" />
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
<add name="Documentation"/>
<add name="HttpGet" />
<add name="HttpPost" />
<add name="Documentation" />
</protocols>
</webServices>
<pages controlRenderingCompatibilityVersion="4.0"/>
<pages controlRenderingCompatibilityVersion="4.0" />
<!--<machineKey validation="3DES" validationKey="319B474B1D2B7A87C996B280450BB36506A95AEDF9B51211" decryption="3DES" decryptionKey="280450BB36319B474C996B506A95AEDF9B51211B1D2B7A87" />-->
<machineKey validation="SHA1" validationKey="319A374B1D2B7A87C996B280450BB46506A95AEDF9B51212" decryption="3DES" decryptionKey="2B0B50BB36319B474C996B506A95AEDF9B51211B1D2B7A88"/>
<machineKey validation="SHA1" validationKey="319A374B1D2B7A87C996B280450BB46506A95AEDF9B51212" decryption="3DES" decryptionKey="2B0B50BB36319B474C996B506A95AEDF9B51211B1D2B7A88" />
</system.web>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="9.0.0.0"/>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Autofac" publicKeyToken="17863af14b0044da" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-9.3.2.0" newVersion="9.3.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.3.0" newVersion="6.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.4.0" newVersion="4.2.4.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.webServer>
<directoryBrowse enabled="true"/>
<directoryBrowse enabled="false" />
<staticContent>
<mimeMap fileExtension=".asmx" mimeType="application/octet-stream"/>
<mimeMap fileExtension=".asmx" mimeType="application/octet-stream" />
</staticContent>
</system.webServer>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701"/>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
</compilers>
</system.codedom>
</configuration>
+12 -8
View File
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Http.Controllers;
namespace KJD_Web
{
@@ -10,18 +11,21 @@ namespace KJD_Web
{
public static void Register(HttpConfiguration config)
{
// 让 AsmxApiController 的所有 Action 同时支持 GET 和 POST
config.Services.Replace(typeof(IHttpActionSelector), new GetPostActionSelector());
// 特性路由:你 ImageCacheController 上的 [Route] 依赖这个
config.MapHttpAttributeRoutes();
// 默认路由
//config.Routes.MapHttpRoute(
// name: "DefaultApi",
// routeTemplate: "{controller}/{action}/{id}",
// defaults: new { id = RouteParameter.Optional }
//);
//config.Formatters.Remove(config.Formatters.XmlFormatter);
//config.Filters.Add(new NotFoundMessageFilter());
//config.MessageHandlers.Add(new NotFoundMessageHandler());
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "{controller}/{action}/{id}",
defaults: new { id = RouteParameter.Optional }
);
config.Formatters.Remove(config.Formatters.XmlFormatter);
config.Filters.Add(new NotFoundMessageFilter());
config.MessageHandlers.Add(new NotFoundMessageHandler());
}
}
+9 -9
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Autofac" version="9.3.2" targetFramework="net462" />
<package id="Autofac" version="9.3.2" targetFramework="net472" />
<package id="Autofac.WebApi2" version="6.2.0" targetFramework="net472" />
<package id="FreeSql" version="3.5.311" targetFramework="net472" />
<package id="FreeSql.Provider.MySql" version="3.5.311" targetFramework="net472" />
@@ -15,17 +15,17 @@
<package id="Microsoft.AspNet.WebApi.Core.zh-Hans" version="5.3.0" targetFramework="net472" />
<package id="Microsoft.AspNet.WebApi.WebHost" version="5.3.0" targetFramework="net472" />
<package id="Microsoft.AspNet.WebApi.WebHost.zh-Hans" version="5.3.0" targetFramework="net472" />
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.0" targetFramework="net462" />
<package id="Microsoft.Bcl.AsyncInterfaces" version="10.0.0" targetFramework="net472" />
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="2.0.1" targetFramework="net46" />
<package id="MySql.Data" version="8.0.30" targetFramework="net472" />
<package id="Newtonsoft.Json" version="13.0.4" targetFramework="net472" />
<package id="Newtonsoft.Json.Bson" version="1.0.2" targetFramework="net472" />
<package id="NLog" version="6.2.0" targetFramework="net462" />
<package id="NLog" version="6.2.0" targetFramework="net472" />
<package id="Portable.BouncyCastle" version="1.9.0" targetFramework="net472" />
<package id="System.Buffers" version="4.6.1" targetFramework="net462" />
<package id="System.Diagnostics.DiagnosticSource" version="10.0.0" targetFramework="net462" />
<package id="System.Memory" version="4.6.3" targetFramework="net462" />
<package id="System.Numerics.Vectors" version="4.6.1" targetFramework="net462" />
<package id="System.Runtime.CompilerServices.Unsafe" version="6.1.2" targetFramework="net462" />
<package id="System.Threading.Tasks.Extensions" version="4.6.3" targetFramework="net462" />
<package id="System.Buffers" version="4.6.1" targetFramework="net472" />
<package id="System.Diagnostics.DiagnosticSource" version="10.0.0" targetFramework="net472" />
<package id="System.Memory" version="4.6.3" targetFramework="net472" />
<package id="System.Numerics.Vectors" version="4.6.1" targetFramework="net472" />
<package id="System.Runtime.CompilerServices.Unsafe" version="6.1.2" targetFramework="net472" />
<package id="System.Threading.Tasks.Extensions" version="4.6.3" targetFramework="net472" />
</packages>