486 lines
9.5 KiB
C#
486 lines
9.5 KiB
C#
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 partial 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);
|
|
|
|
}
|
|
}
|
|
} |