增加项目,分层
This commit is contained in:
1 parent
6e995a5bdb
commit
0a3e5af6a9
234 files changed
+26994
-1
No files matched your search
@@ -0,0 +1,17 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Store.Framework.Apis;
|
||||
|
||||
public class ApiResponse<T>
|
||||
{
|
||||
public int Code { get; set; }
|
||||
|
||||
public string Msg { get; set; }
|
||||
|
||||
public T Data { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,241 @@
|
||||
using MAX.Core.DependencyInjection;
|
||||
using MAX.Core.Helpers;
|
||||
using Store.Client.HttpExtension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Store.Client.Apis
|
||||
{
|
||||
/// <summary>
|
||||
/// 公共基础数据Api
|
||||
/// </summary>
|
||||
public partial class CommonApi : AppApiRequestBase, ITransientDependency
|
||||
{
|
||||
#region 公共基础
|
||||
/// <summary>
|
||||
/// 获取服务器时间校准时间
|
||||
/// </summary>
|
||||
public DateTime GetServerTime()
|
||||
{
|
||||
HttpResult result = ServerRequest(new ServerHttpItem { URL = $"{_config.Host}/time.php" });
|
||||
if (result.StatusCode == HttpStatusCode.OK)
|
||||
{
|
||||
if (DateTime.TryParse(result.Html, out DateTime dt))
|
||||
{
|
||||
return dt;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception("连接服务器失败,将导致无法登录");
|
||||
}
|
||||
|
||||
}
|
||||
return DateTime.Now;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取签名验证配置
|
||||
/// </summary>
|
||||
public string GetAuthConfig()
|
||||
{
|
||||
ServerHttpItem item = new ServerHttpItem();
|
||||
item.URL = $"{_config.Host}?obj=api/config&act=auth_config";
|
||||
HttpResult result = ServerRequest(item);
|
||||
if (result.StatusCode == HttpStatusCode.OK)
|
||||
{
|
||||
return result.Html;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取缓存服务集群负载比例
|
||||
/// </summary>
|
||||
public string GetCacheServerRatio()
|
||||
{
|
||||
|
||||
ServerHttpItem item = new ServerHttpItem();
|
||||
item.URL = _config.Host + "?" + _config.ObjUrl + "config&act=cache_service_mode";
|
||||
item.Method = MethodType.Post;
|
||||
//item.SignUser();
|
||||
HttpResult result = ServerRequest(item);
|
||||
if (result.StatusCode == HttpStatusCode.OK)
|
||||
{
|
||||
return result.Html;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
#endregion
|
||||
|
||||
///// <summary>
|
||||
///// 获取服务器图片缓存
|
||||
///// </summary>
|
||||
///// <param name="imgUrl"></param>
|
||||
///// <returns></returns>
|
||||
//public HttpResult GetImageCache(string imgUrl)
|
||||
//{
|
||||
// long id = MD5Helper.GetLong(imgUrl);
|
||||
// ServerHttpItem item = new ServerHttpItem();
|
||||
// item.Method = MethodType.Post;
|
||||
// item.URL = _config.Host + "?" + _config.ObjUrl + "add_img";
|
||||
// item.Postdata = "act=get&table=" + Math.Abs(id % 1024) + "&id=" + id;
|
||||
// return ServerRequest(item);
|
||||
//}
|
||||
|
||||
#region 默认服务接口
|
||||
/// <summary>
|
||||
/// common&act=get_agent_ip
|
||||
/// </summary>
|
||||
public HttpResult GetAgentIp(string postdata = "")
|
||||
{
|
||||
return Post("common&act=get_agent_ip", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// config&act=get_service_url
|
||||
/// </summary>
|
||||
public HttpResult GetServiceUrl(string postdata = "")
|
||||
{
|
||||
return Post("config&act=get_service_url", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// cookies&act=save
|
||||
/// </summary>
|
||||
public HttpResult SaveCookies(string postdata = "")
|
||||
{
|
||||
return Post("cookies&act=save", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// data_change&act=get_cache_title
|
||||
/// </summary>
|
||||
public HttpResult GetCacheTitle(string postdata = "")
|
||||
{
|
||||
return Post("data_change&act=get_cache_title", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// data_change&act=get_pid
|
||||
/// </summary>
|
||||
public HttpResult GetPid(string postdata = "")
|
||||
{
|
||||
return Post("data_change&act=get_pid", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// decode&act=get
|
||||
/// </summary>
|
||||
public HttpResult GetDecode(string postdata = "")
|
||||
{
|
||||
return Post("decode&act=get", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// decode&act=getx
|
||||
/// </summary>
|
||||
public HttpResult GetDecodeList(string postdata = "")
|
||||
{
|
||||
return Post("decode&act=getx", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// get_taobao_sign&act=get_tb_sign
|
||||
/// </summary>
|
||||
public HttpResult GetTaobaoSign(string postdata = "")
|
||||
{
|
||||
return Post("get_taobao_sign&act=get_tb_sign", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// nav_group_list
|
||||
/// </summary>
|
||||
public HttpResult GetNavGroupList(string postdata = "")
|
||||
{
|
||||
return Post("nav_group_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// oem_config&act=get_config_info
|
||||
/// </summary>
|
||||
public HttpResult GetOemConfigInfo(string postdata = "")
|
||||
{
|
||||
return Post("oem_config&act=get_config_info", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// oem_config&act=get_version
|
||||
/// </summary>
|
||||
public HttpResult GetOemVersion(string postdata = "")
|
||||
{
|
||||
return Post("oem_config&act=get_version", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// regedit
|
||||
/// </summary>
|
||||
public HttpResult Regedit(string postdata = "")
|
||||
{
|
||||
return PostPublic("regedit", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// reset_password
|
||||
/// </summary>
|
||||
public HttpResult ResetPassword(string postdata = "")
|
||||
{
|
||||
return PostPublic("reset_password", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// sign
|
||||
/// </summary>
|
||||
public HttpResult GetPackageSign(string postdata = "")
|
||||
{
|
||||
return Post("sign", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// sign&act=get&type={type}&client_id={clientId}
|
||||
/// </summary>
|
||||
public HttpResult GetSign(string type, string clientId, string postdata = "")
|
||||
{
|
||||
return Post("sign&act=get&type=" + type + "&client_id=" + clientId, postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// sms_gate
|
||||
/// </summary>
|
||||
public HttpResult SmsGate(string postdata = "")
|
||||
{
|
||||
return PostPublic("sms_gate", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// upid&act=getx&page={page}
|
||||
/// </summary>
|
||||
public HttpResult GetUpidList(int page, string postdata = "")
|
||||
{
|
||||
return Post("upid&act=getx&page=" + page, postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 默认兼容接口
|
||||
/// <summary>
|
||||
/// update/get_update_new
|
||||
/// </summary>
|
||||
public HttpResult DefaultUpdateGetUpdateNew(string postdata = "")
|
||||
{
|
||||
return PostDefault("update/get_update_new", postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
using MAX.Core.DependencyInjection;
|
||||
using MAX.Core.Helpers;
|
||||
using Store.Client.HttpExtension;
|
||||
|
||||
namespace Store.Client.Apis
|
||||
{
|
||||
public partial class OrderApi : AppApiRequestBase, ITransientDependency
|
||||
{
|
||||
#region 默认服务接口
|
||||
/// <summary>
|
||||
/// order/add_order
|
||||
/// </summary>
|
||||
public HttpResult AddOrder(string postdata = "")
|
||||
{
|
||||
return Post("order/add_order", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// order/add_order_code_file
|
||||
/// </summary>
|
||||
public HttpResult AddOrderCodeFile(string postdata = "")
|
||||
{
|
||||
return Post("order/add_order_code_file", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// order/get_order_code_file
|
||||
/// </summary>
|
||||
public HttpResult GetOrderCodeFile(string postdata = "")
|
||||
{
|
||||
return Post("order/get_order_code_file", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// order/get_order_list
|
||||
/// </summary>
|
||||
public HttpResult GetOrderList(string postdata = "")
|
||||
{
|
||||
return Post("order/get_order_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// order/save_order_code_file_link
|
||||
/// </summary>
|
||||
public HttpResult SaveOrderCodeFileLink(string postdata = "")
|
||||
{
|
||||
return Post("order/save_order_code_file_link", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// order/update_order_status
|
||||
/// </summary>
|
||||
public HttpResult UpdateOrderStatus(string postdata = "")
|
||||
{
|
||||
return Post("order/update_order_status", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// order/update_order_status1
|
||||
/// </summary>
|
||||
public HttpResult UpdateOrderStatus1(string postdata = "")
|
||||
{
|
||||
return Post("order/update_order_status1", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// order/upload_order
|
||||
/// </summary>
|
||||
public HttpResult UploadOrder(string postdata = "")
|
||||
{
|
||||
return Post("order/upload_order", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// pay_group_order&act=get_confirm_order&buy_type={buyType}&page={page}
|
||||
/// </summary>
|
||||
public HttpResult GetPayGroupConfirmOrder(string buyType, int page, string postdata = "")
|
||||
{
|
||||
return Post("pay_group_order&act=get_confirm_order&buy_type=" + buyType + "&page=" + page, postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// pay_group_order&act=reset_status
|
||||
/// </summary>
|
||||
public HttpResult ResetPayGroupOrderStatus(string postdata = "")
|
||||
{
|
||||
return Post("pay_group_order&act=reset_status", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// pay_group_order&act=update&buy_type={buyType}
|
||||
/// </summary>
|
||||
public HttpResult UpdatePayGroupOrder(string buyType, string postdata = "")
|
||||
{
|
||||
return Post("pay_group_order&act=update&buy_type=" + buyType, postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 微信服务接口
|
||||
/// <summary>
|
||||
/// order/get_erp_order_list
|
||||
/// </summary>
|
||||
public HttpResult WxGetErpOrderList(string postdata = "")
|
||||
{
|
||||
return PostWx("order/get_erp_order_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// order/wx_del_erp_transit_warehouse_order
|
||||
/// </summary>
|
||||
public HttpResult WxDelErpTransitWarehouseOrder(string postdata = "")
|
||||
{
|
||||
return PostWx("order/wx_del_erp_transit_warehouse_order", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// order/wx_get_transit_order
|
||||
/// </summary>
|
||||
public HttpResult WxGetTransitOrder(string postdata = "")
|
||||
{
|
||||
return PostWx("order/wx_get_transit_order", postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
using MAX.Core.DependencyInjection;
|
||||
using MAX.Core.Helpers;
|
||||
using Store.Client.HttpExtension;
|
||||
|
||||
namespace Store.Client.Apis
|
||||
{
|
||||
public partial class PriceApi : AppApiRequestBase, ITransientDependency
|
||||
{
|
||||
#region 默认服务接口
|
||||
/// <summary>
|
||||
/// price/add_price
|
||||
/// </summary>
|
||||
public HttpResult AddPrice(string postdata = "")
|
||||
{
|
||||
return Post("price/add_price", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// price/add_purchase_price
|
||||
/// </summary>
|
||||
public HttpResult AddPurchasePrice(string postdata = "")
|
||||
{
|
||||
return Post("price/add_purchase_price", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// price/del_db_price
|
||||
/// </summary>
|
||||
public HttpResult DelDbPrice(string postdata = "")
|
||||
{
|
||||
return Post("price/del_db_price", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// price/get_price_list
|
||||
/// </summary>
|
||||
public HttpResult GetPriceList(string postdata = "")
|
||||
{
|
||||
return Post("price/get_price_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// price/get_purchase_price_list
|
||||
/// </summary>
|
||||
public HttpResult GetPurchasePriceList(string postdata = "")
|
||||
{
|
||||
return Post("price/get_purchase_price_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// price/mdy_db_price
|
||||
/// </summary>
|
||||
public HttpResult MdyDbPrice(string postdata = "")
|
||||
{
|
||||
return Post("price/mdy_db_price", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// price/mdy_purchase_price
|
||||
/// </summary>
|
||||
public HttpResult MdyPurchasePrice(string postdata = "")
|
||||
{
|
||||
return Post("price/mdy_purchase_price", postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 拼多多服务接口
|
||||
/// <summary>
|
||||
/// price/add_ext_code_price
|
||||
/// </summary>
|
||||
public HttpResult PddAddExtCodePrice(string postdata = "")
|
||||
{
|
||||
return PostPdd("price/add_ext_code_price", postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,654 @@
|
||||
using MAX.Core.DependencyInjection;
|
||||
using MAX.Core.Helpers;
|
||||
using Store.Client.HttpExtension;
|
||||
|
||||
namespace Store.Client.Apis
|
||||
{
|
||||
public partial class ProductApi : AppApiRequestBase, ITransientDependency
|
||||
{
|
||||
#region 默认服务接口
|
||||
/// <summary>
|
||||
/// product/add_cate_size_weight_config_v2
|
||||
/// </summary>
|
||||
public HttpResult AddCateSizeWeightConfigV2(string postdata = "")
|
||||
{
|
||||
return Post("product/add_cate_size_weight_config_v2", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/add_product
|
||||
/// </summary>
|
||||
public HttpResult AddProduct(string postdata = "")
|
||||
{
|
||||
return Post("product/add_product", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/add_sku_image
|
||||
/// </summary>
|
||||
public HttpResult AddSkuImage(string postdata = "")
|
||||
{
|
||||
return Post("product/add_sku_image", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/add_sku_img
|
||||
/// </summary>
|
||||
public HttpResult AddSkuImg(string postdata = "")
|
||||
{
|
||||
return Post("product/add_sku_img", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/add_sku_img_replace
|
||||
/// </summary>
|
||||
public HttpResult AddSkuImgReplace(string postdata = "")
|
||||
{
|
||||
return Post("product/add_sku_img_replace", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/add_user_select_product
|
||||
/// </summary>
|
||||
public HttpResult AddUserSelectProduct(string postdata = "")
|
||||
{
|
||||
return Post("product/add_user_select_product", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/admin_get_user_select_product_list
|
||||
/// </summary>
|
||||
public HttpResult AdminGetUserSelectProductList(string postdata = "")
|
||||
{
|
||||
return Post("product/admin_get_user_select_product_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/del_db_product
|
||||
/// </summary>
|
||||
public HttpResult DelDbProduct(string postdata = "")
|
||||
{
|
||||
return Post("product/del_db_product", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/del_select_product
|
||||
/// </summary>
|
||||
public HttpResult DelSelectProduct(string postdata = "")
|
||||
{
|
||||
return Post("product/del_select_product", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/del_sku_image
|
||||
/// </summary>
|
||||
public HttpResult DelSkuImage(string postdata = "")
|
||||
{
|
||||
return Post("product/del_sku_image", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_cate_size_weight_config_v2
|
||||
/// </summary>
|
||||
public HttpResult GetCateSizeWeightConfigV2(string postdata = "")
|
||||
{
|
||||
return Post("product/get_cate_size_weight_config_v2", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_pdd_prod_wx_complate_list
|
||||
/// </summary>
|
||||
public HttpResult GetPddProdWxComplateList(string postdata = "")
|
||||
{
|
||||
return Post("product/get_pdd_prod_wx_complate_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_pdd_product_cates
|
||||
/// </summary>
|
||||
public HttpResult GetPddProductCates(string postdata = "")
|
||||
{
|
||||
return Post("product/get_pdd_product_cates", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_pdd_product_detail_list
|
||||
/// </summary>
|
||||
public HttpResult GetPddProductDetailList(string postdata = "")
|
||||
{
|
||||
return Post("product/get_pdd_product_detail_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_pdd_product_list_random
|
||||
/// </summary>
|
||||
public HttpResult GetPddProductListRandom(string postdata = "")
|
||||
{
|
||||
return Post("product/get_pdd_product_list_random", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_product_detail_list
|
||||
/// </summary>
|
||||
public HttpResult GetProductDetailList(string postdata = "")
|
||||
{
|
||||
return Post("product/get_product_detail_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_product_group_list
|
||||
/// </summary>
|
||||
public HttpResult GetProductGroupList(string postdata = "")
|
||||
{
|
||||
return Post("product/get_product_group_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_product_list
|
||||
/// </summary>
|
||||
public HttpResult GetProductList(string postdata = "")
|
||||
{
|
||||
return Post("product/get_product_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_product_list_random
|
||||
/// </summary>
|
||||
public HttpResult GetProductListRandom(string postdata = "")
|
||||
{
|
||||
return Post("product/get_product_list_random", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_random_company_product_config
|
||||
/// </summary>
|
||||
public HttpResult GetRandomCompanyProductConfig(string postdata = "")
|
||||
{
|
||||
return Post("product/get_random_company_product_config", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_select_prod_db_id_map_draft_id_list
|
||||
/// </summary>
|
||||
public HttpResult GetSelectProdDbIdMapDraftIdList(string postdata = "")
|
||||
{
|
||||
return Post("product/get_select_prod_db_id_map_draft_id_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_select_prod_map_up_spu_id_list
|
||||
/// </summary>
|
||||
public HttpResult GetSelectProdMapUpSpuIdList(string postdata = "")
|
||||
{
|
||||
return Post("product/get_select_prod_map_up_spu_id_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_sku_image_list
|
||||
/// </summary>
|
||||
public HttpResult GetSkuImageList(string postdata = "")
|
||||
{
|
||||
return Post("product/get_sku_image_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_sku_img_replace_list
|
||||
/// </summary>
|
||||
public HttpResult GetSkuImgReplaceList(string postdata = "")
|
||||
{
|
||||
return Post("product/get_sku_img_replace_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_sku_replace_img_list_random
|
||||
/// </summary>
|
||||
public HttpResult GetSkuReplaceImgListRandom(string postdata = "")
|
||||
{
|
||||
return Post("product/get_sku_replace_img_list_random", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_user_select_product_list
|
||||
/// </summary>
|
||||
public HttpResult GetUserSelectProductList(string postdata = "")
|
||||
{
|
||||
return Post("product/get_user_select_product_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/is_get_wx_recommend_hot_prod
|
||||
/// </summary>
|
||||
public HttpResult IsGetWxRecommendHotProd(string postdata = "")
|
||||
{
|
||||
return Post("product/is_get_wx_recommend_hot_prod", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/mdy_base64_img_url
|
||||
/// </summary>
|
||||
public HttpResult MdyBase64ImgUrl(string postdata = "")
|
||||
{
|
||||
return Post("product/mdy_base64_img_url", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/mdy_base64_img_use_count
|
||||
/// </summary>
|
||||
public HttpResult MdyBase64ImgUseCount(string postdata = "")
|
||||
{
|
||||
return Post("product/mdy_base64_img_use_count", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/mdy_best_sale_prod
|
||||
/// </summary>
|
||||
public HttpResult MdyBestSaleProd(string postdata = "")
|
||||
{
|
||||
return Post("product/mdy_best_sale_prod", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/mdy_db_product
|
||||
/// </summary>
|
||||
public HttpResult MdyDbProduct(string postdata = "")
|
||||
{
|
||||
return Post("product/mdy_db_product", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/mdy_product
|
||||
/// </summary>
|
||||
public HttpResult MdyProduct(string postdata = "")
|
||||
{
|
||||
return Post("product/mdy_product", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/mdy_product_category
|
||||
/// </summary>
|
||||
public HttpResult MdyProductCategory(string postdata = "")
|
||||
{
|
||||
return Post("product/mdy_product_category", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/mdy_product_select_notes
|
||||
/// </summary>
|
||||
public HttpResult MdyProductSelectNotes(string postdata = "")
|
||||
{
|
||||
return Post("product/mdy_product_select_notes", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/mdy_sku_img_replace
|
||||
/// </summary>
|
||||
public HttpResult MdySkuImgReplace(string postdata = "")
|
||||
{
|
||||
return Post("product/mdy_sku_img_replace", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/mdy_user_select_product_status
|
||||
/// </summary>
|
||||
public HttpResult MdyUserSelectProductStatus(string postdata = "")
|
||||
{
|
||||
return Post("product/mdy_user_select_product_status", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/set_random_company_product_config
|
||||
/// </summary>
|
||||
public HttpResult SetRandomCompanyProductConfig(string postdata = "")
|
||||
{
|
||||
return Post("product/set_random_company_product_config", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/set_select_product_sub_sa
|
||||
/// </summary>
|
||||
public HttpResult SetSelectProductSubSa(string postdata = "")
|
||||
{
|
||||
return Post("product/set_select_product_sub_sa", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/wx_add_mdy_after_sale
|
||||
/// </summary>
|
||||
public HttpResult WxAddMdyAfterSale(string postdata = "")
|
||||
{
|
||||
return Post("product/wx_add_mdy_after_sale", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/wx_del_address
|
||||
/// </summary>
|
||||
public HttpResult WxDelAddress(string postdata = "")
|
||||
{
|
||||
return Post("product/wx_del_address", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/wx_del_qualification_image
|
||||
/// </summary>
|
||||
public HttpResult WxDelQualificationImage(string postdata = "")
|
||||
{
|
||||
return Post("product/wx_del_qualification_image", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/wx_get_after_sale
|
||||
/// </summary>
|
||||
public HttpResult WxGetAfterSale(string postdata = "")
|
||||
{
|
||||
return Post("product/wx_get_after_sale", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/wx_get_after_sale_list
|
||||
/// </summary>
|
||||
public HttpResult WxGetAfterSaleList(string postdata = "")
|
||||
{
|
||||
return Post("product/wx_get_after_sale_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/wx_get_qualification_image
|
||||
/// </summary>
|
||||
public HttpResult WxGetQualificationImage(string postdata = "")
|
||||
{
|
||||
return Post("product/wx_get_qualification_image", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/wx_get_random_after_sale_list
|
||||
/// </summary>
|
||||
public HttpResult WxGetRandomAfterSaleList(string postdata = "")
|
||||
{
|
||||
return Post("product/wx_get_random_after_sale_list", postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 拼多多服务接口
|
||||
/// <summary>
|
||||
/// product/add_jst_sku
|
||||
/// </summary>
|
||||
public HttpResult PddAddJstSku(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/add_jst_sku", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/add_mdy_jst_product_ban
|
||||
/// </summary>
|
||||
public HttpResult PddAddMdyJstProductBan(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/add_mdy_jst_product_ban", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/add_prod_down_sku
|
||||
/// </summary>
|
||||
public HttpResult PddAddProdDownSku(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/add_prod_down_sku", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/add_prod_wx_complate
|
||||
/// </summary>
|
||||
public HttpResult PddAddProdWxComplate(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/add_prod_wx_complate", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/add_product
|
||||
/// </summary>
|
||||
public HttpResult PddAddProduct(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/add_product", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/add_product_groups
|
||||
/// </summary>
|
||||
public HttpResult PddAddProductGroups(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/add_product_groups", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/add_product_notes
|
||||
/// </summary>
|
||||
public HttpResult PddAddProductNotes(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/add_product_notes", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/add_relation
|
||||
/// </summary>
|
||||
public HttpResult PddAddRelation(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/add_relation", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/del_db_product
|
||||
/// </summary>
|
||||
public HttpResult PddDelDbProduct(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/del_db_product", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/del_product_groups
|
||||
/// </summary>
|
||||
public HttpResult PddDelProductGroups(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/del_product_groups", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/del_product_notes
|
||||
/// </summary>
|
||||
public HttpResult PddDelProductNotes(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/del_product_notes", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_jst_product_coid_list
|
||||
/// </summary>
|
||||
public HttpResult PddGetJstProductCoidList(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/get_jst_product_coid_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_jst_sku_list
|
||||
/// </summary>
|
||||
public HttpResult PddGetJstSkuList(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/get_jst_sku_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_prod_down_sku_lst_by_sku_codes
|
||||
/// </summary>
|
||||
public HttpResult PddGetProdDownSkuLstBySkuCodes(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/get_prod_down_sku_lst_by_sku_codes", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_product_detail_list
|
||||
/// </summary>
|
||||
public HttpResult PddGetProductDetailList(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/get_product_detail_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_product_groups
|
||||
/// </summary>
|
||||
public HttpResult PddGetProductGroups(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/get_product_groups", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_product_list
|
||||
/// </summary>
|
||||
public HttpResult PddGetProductList(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/get_product_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_product_notes
|
||||
/// </summary>
|
||||
public HttpResult PddGetProductNotes(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/get_product_notes", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_product_spu_id_list
|
||||
/// </summary>
|
||||
public HttpResult PddGetProductSpuIdList(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/get_product_spu_id_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_relation
|
||||
/// </summary>
|
||||
public HttpResult PddGetRelation(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/get_relation", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/mdy_db_product
|
||||
/// </summary>
|
||||
public HttpResult PddMdyDbProduct(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/mdy_db_product", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/mdy_jst_sku
|
||||
/// </summary>
|
||||
public HttpResult PddMdyJstSku(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/mdy_jst_sku", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/mdy_product
|
||||
/// </summary>
|
||||
public HttpResult PddMdyProduct(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/mdy_product", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/mdy_violation_prod
|
||||
/// </summary>
|
||||
public HttpResult PddMdyViolationProd(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/mdy_violation_prod", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/wx_api_category_classify
|
||||
/// </summary>
|
||||
public HttpResult PddWxApiCategoryClassify(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/wx_api_category_classify", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/wx_api_get_all_cate
|
||||
/// </summary>
|
||||
public HttpResult PddWxApiGetAllCate(string postdata = "")
|
||||
{
|
||||
return PostPdd("product/wx_api_get_all_cate", postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 微信服务接口
|
||||
/// <summary>
|
||||
/// product/e57_get_freight_template
|
||||
/// </summary>
|
||||
public HttpResult E57GetFreightTemplate(string postdata = "")
|
||||
{
|
||||
return PostWx("product/e57_get_freight_template", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_hot_product_detail_list
|
||||
/// </summary>
|
||||
public HttpResult WxGetHotProductDetailList(string postdata = "")
|
||||
{
|
||||
return PostWx("product/get_hot_product_detail_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/get_hot_product_list
|
||||
/// </summary>
|
||||
public HttpResult WxGetHotProductList(string postdata = "")
|
||||
{
|
||||
return PostWx("product/get_hot_product_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/wx_add_mdy_qualification_image
|
||||
/// </summary>
|
||||
public HttpResult WxAddMdyQualificationImage(string postdata = "")
|
||||
{
|
||||
return PostWx("product/wx_add_mdy_qualification_image", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/wx_add_mdy_shipping_template
|
||||
/// </summary>
|
||||
public HttpResult WxAddMdyShippingTemplate(string postdata = "")
|
||||
{
|
||||
return PostWx("product/wx_add_mdy_shipping_template", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/wx_get_product_latest_buy_amount_list
|
||||
/// </summary>
|
||||
public HttpResult WxGetProductLatestBuyAmountList(string postdata = "")
|
||||
{
|
||||
return PostWx("product/wx_get_product_latest_buy_amount_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product/wx_get_shipping_template
|
||||
/// </summary>
|
||||
public HttpResult WxGetShippingTemplate(string postdata = "")
|
||||
{
|
||||
return PostWx("product/wx_get_shipping_template", postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 微信图片服务接口
|
||||
/// <summary>
|
||||
/// product/wx_api_upload_image
|
||||
/// </summary>
|
||||
public HttpResult WxApiUploadImage(string postdata = "")
|
||||
{
|
||||
return PostWxImg("product/wx_api_upload_image", postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
using MAX.Core.DependencyInjection;
|
||||
using MAX.Core.Helpers;
|
||||
using Store.Client.HttpExtension;
|
||||
|
||||
namespace Store.Client.Apis
|
||||
{
|
||||
public partial class ProductThirdApi : AppApiRequestBase, ITransientDependency
|
||||
{
|
||||
#region 默认服务接口
|
||||
/// <summary>
|
||||
/// product_third/add_product
|
||||
/// </summary>
|
||||
public HttpResult AddProduct(string postdata = "")
|
||||
{
|
||||
return Post("product_third/add_product", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product_third/add_user_select_product
|
||||
/// </summary>
|
||||
public HttpResult AddUserSelectProduct(string postdata = "")
|
||||
{
|
||||
return Post("product_third/add_user_select_product", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product_third/admin_get_user_select_product_list
|
||||
/// </summary>
|
||||
public HttpResult AdminGetUserSelectProductList(string postdata = "")
|
||||
{
|
||||
return Post("product_third/admin_get_user_select_product_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product_third/del_select_product
|
||||
/// </summary>
|
||||
public HttpResult DelSelectProduct(string postdata = "")
|
||||
{
|
||||
return Post("product_third/del_select_product", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product_third/get_product_detail_list
|
||||
/// </summary>
|
||||
public HttpResult GetProductDetailList(string postdata = "")
|
||||
{
|
||||
return Post("product_third/get_product_detail_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product_third/get_product_detail_list_bak
|
||||
/// </summary>
|
||||
public HttpResult GetProductDetailListBak(string postdata = "")
|
||||
{
|
||||
return Post("product_third/get_product_detail_list_bak", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product_third/get_product_list
|
||||
/// </summary>
|
||||
public HttpResult GetProductList(string postdata = "")
|
||||
{
|
||||
return Post("product_third/get_product_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product_third/get_select_prod_db_id_map_draft_id_list
|
||||
/// </summary>
|
||||
public HttpResult GetSelectProdDbIdMapDraftIdList(string postdata = "")
|
||||
{
|
||||
return Post("product_third/get_select_prod_db_id_map_draft_id_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product_third/get_user_select_product_list
|
||||
/// </summary>
|
||||
public HttpResult GetUserSelectProductList(string postdata = "")
|
||||
{
|
||||
return Post("product_third/get_user_select_product_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product_third/mdy_db_product
|
||||
/// </summary>
|
||||
public HttpResult MdyDbProduct(string postdata = "")
|
||||
{
|
||||
return Post("product_third/mdy_db_product", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product_third/mdy_product_category
|
||||
/// </summary>
|
||||
public HttpResult MdyProductCategory(string postdata = "")
|
||||
{
|
||||
return Post("product_third/mdy_product_category", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product_third/mdy_product_select_notes
|
||||
/// </summary>
|
||||
public HttpResult MdyProductSelectNotes(string postdata = "")
|
||||
{
|
||||
return Post("product_third/mdy_product_select_notes", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product_third/mdy_user_select_product_status
|
||||
/// </summary>
|
||||
public HttpResult MdyUserSelectProductStatus(string postdata = "")
|
||||
{
|
||||
return Post("product_third/mdy_user_select_product_status", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// product_third/set_select_product_sub_sa
|
||||
/// </summary>
|
||||
public HttpResult SetSelectProductSubSa(string postdata = "")
|
||||
{
|
||||
return Post("product_third/set_select_product_sub_sa", postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
|
||||
namespace Store.Client.Apis
|
||||
{
|
||||
///// <summary>
|
||||
///// 服务器
|
||||
///// </summary>
|
||||
//public class ServerHttpBase : ITransientDependency
|
||||
//{
|
||||
|
||||
// /// <summary>
|
||||
// /// 日志
|
||||
// /// </summary>
|
||||
// [Autowired]
|
||||
// protected ILog _log { get; set; }
|
||||
|
||||
// /// <summary>
|
||||
// /// 服务器配置
|
||||
// /// </summary>
|
||||
// [Autowired]
|
||||
// protected IServerConfig _config { get; set; }
|
||||
|
||||
// public ServerHttpBase()
|
||||
// {
|
||||
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// /// <summary>
|
||||
// /// 服务器请求
|
||||
// /// </summary>
|
||||
// /// <param name="item"></param>
|
||||
// /// <returns></returns>
|
||||
// public HttpResult ServerRequest(HttpItem item)
|
||||
// {
|
||||
// if (!item.URL.StartsWith("http"))
|
||||
// {
|
||||
// item.URL += _config.Host + item.URL;
|
||||
// }
|
||||
// item.Encoding = Encoding.UTF8;
|
||||
// // ////item
|
||||
// //#if PROXY
|
||||
// // item.ProxyIp = "127.0.0.1:8080";
|
||||
// //#endif
|
||||
// HttpHelper http = new HttpHelper();
|
||||
// HttpResult result = http.GetHtml(item);
|
||||
// if (result.StatusCode == HttpStatusCode.OK)
|
||||
// {
|
||||
// if (!string.IsNullOrEmpty(result.Html))
|
||||
// {
|
||||
// if (result.Html[0] == 65279)
|
||||
// {
|
||||
// result.Html = result.Html.Remove(0, 1);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
|
||||
// }
|
||||
// return result;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
@@ -0,0 +1,472 @@
|
||||
using MAX.Core.DependencyInjection;
|
||||
using MAX.Core.Helpers;
|
||||
using Store.Client.HttpExtension;
|
||||
|
||||
namespace Store.Client.Apis
|
||||
{
|
||||
public partial class ShopApi : AppApiRequestBase, ITransientDependency
|
||||
{
|
||||
#region 默认服务接口
|
||||
/// <summary>
|
||||
/// pdd_shop_temp&act=goup
|
||||
/// </summary>
|
||||
public HttpResult GoupPddShopTemp(string postdata = "")
|
||||
{
|
||||
return Post("pdd_shop_temp&act=goup", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// pdd_shop_tempx&act=get_shop_cookies_list
|
||||
/// </summary>
|
||||
public HttpResult GetPddShopCookiesList(string postdata = "")
|
||||
{
|
||||
return Post("pdd_shop_tempx&act=get_shop_cookies_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop&act=get_shop_token
|
||||
/// </summary>
|
||||
public HttpResult GetShopToken(string postdata = "")
|
||||
{
|
||||
return Post("shop&act=get_shop_token", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop&act=update_mall_id
|
||||
/// </summary>
|
||||
public HttpResult UpdateMallId(string postdata = "")
|
||||
{
|
||||
return Post("shop&act=update_mall_id", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/active_jit_card_code
|
||||
/// </summary>
|
||||
public HttpResult ActiveJitCardCode(string postdata = "")
|
||||
{
|
||||
return Post("shop/active_jit_card_code", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/add_mdy_express_optimize_remark
|
||||
/// </summary>
|
||||
public HttpResult AddMdyExpressOptimizeRemark(string postdata = "")
|
||||
{
|
||||
return Post("shop/add_mdy_express_optimize_remark", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/add_mdy_express_optimize_rst
|
||||
/// </summary>
|
||||
public HttpResult AddMdyExpressOptimizeRst(string postdata = "")
|
||||
{
|
||||
return Post("shop/add_mdy_express_optimize_rst", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/add_mdy_shop_client_info
|
||||
/// </summary>
|
||||
public HttpResult AddMdyShopClientInfo(string postdata = "")
|
||||
{
|
||||
return Post("shop/add_mdy_shop_client_info", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/add_shop
|
||||
/// </summary>
|
||||
public HttpResult AddShop(string postdata = "")
|
||||
{
|
||||
return Post("shop/add_shop", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/add_waybill
|
||||
/// </summary>
|
||||
public HttpResult AddWaybill(string postdata = "")
|
||||
{
|
||||
return Post("shop/add_waybill", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/admin_add_shop
|
||||
/// </summary>
|
||||
public HttpResult AdminAddShop(string postdata = "")
|
||||
{
|
||||
return Post("shop/admin_add_shop", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/admin_del_shop
|
||||
/// </summary>
|
||||
public HttpResult AdminDelShop(string postdata = "")
|
||||
{
|
||||
return Post("shop/admin_del_shop", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/admin_get_shop_list
|
||||
/// </summary>
|
||||
public HttpResult AdminGetShopList(string postdata = "")
|
||||
{
|
||||
return Post("shop/admin_get_shop_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/admin_mdy_shop
|
||||
/// </summary>
|
||||
public HttpResult AdminMdyShop(string postdata = "")
|
||||
{
|
||||
return Post("shop/admin_mdy_shop", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/create_shop_card_code
|
||||
/// </summary>
|
||||
public HttpResult CreateShopCardCode(string postdata = "")
|
||||
{
|
||||
return Post("shop/create_shop_card_code", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/del_shop
|
||||
/// </summary>
|
||||
public HttpResult DelShop(string postdata = "")
|
||||
{
|
||||
return Post("shop/del_shop", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/del_shop_card_code
|
||||
/// </summary>
|
||||
public HttpResult DelShopCardCode(string postdata = "")
|
||||
{
|
||||
return Post("shop/del_shop_card_code", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/del_waybill
|
||||
/// </summary>
|
||||
public HttpResult DelWaybill(string postdata = "")
|
||||
{
|
||||
return Post("shop/del_waybill", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/e57_get_wx_shop_token
|
||||
/// </summary>
|
||||
public HttpResult E57GetWxShopToken(string postdata = "")
|
||||
{
|
||||
return Post("shop/e57_get_wx_shop_token", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/e57_get_wx_tokens
|
||||
/// </summary>
|
||||
public HttpResult E57GetWxTokens(string postdata = "")
|
||||
{
|
||||
return Post("shop/e57_get_wx_tokens", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/get_express_optimize_remark
|
||||
/// </summary>
|
||||
public HttpResult GetExpressOptimizeRemark(string postdata = "")
|
||||
{
|
||||
return Post("shop/get_express_optimize_remark", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/get_express_optimize_rst
|
||||
/// </summary>
|
||||
public HttpResult GetExpressOptimizeRst(string postdata = "")
|
||||
{
|
||||
return Post("shop/get_express_optimize_rst", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/get_shop_card_code_list
|
||||
/// </summary>
|
||||
public HttpResult GetShopCardCodeList(string postdata = "")
|
||||
{
|
||||
return Post("shop/get_shop_card_code_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/get_shop_list
|
||||
/// </summary>
|
||||
public HttpResult GetShopList(string postdata = "")
|
||||
{
|
||||
return Post("shop/get_shop_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/get_waybill
|
||||
/// </summary>
|
||||
public HttpResult GetWaybill(string postdata = "")
|
||||
{
|
||||
return Post("shop/get_waybill", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/get_waybill_no_user_name
|
||||
/// </summary>
|
||||
public HttpResult GetWaybillNoUserName(string postdata = "")
|
||||
{
|
||||
return Post("shop/get_waybill_no_user_name", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/get_weidian_shop
|
||||
/// </summary>
|
||||
public HttpResult GetWeidianShop(string postdata = "")
|
||||
{
|
||||
return Post("shop/get_weidian_shop", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/mdy_anti_content
|
||||
/// </summary>
|
||||
public HttpResult MdyAntiContent(string postdata = "")
|
||||
{
|
||||
return Post("shop/mdy_anti_content", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/mdy_shop
|
||||
/// </summary>
|
||||
public HttpResult MdyShop(string postdata = "")
|
||||
{
|
||||
return Post("shop/mdy_shop", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/mdy_shop_ads_cookie_and_login_status
|
||||
/// </summary>
|
||||
public HttpResult MdyShopAdsCookieAndLoginStatus(string postdata = "")
|
||||
{
|
||||
return Post("shop/mdy_shop_ads_cookie_and_login_status", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/mdy_shop_cookie_and_login_status
|
||||
/// </summary>
|
||||
public HttpResult MdyShopCookieAndLoginStatus(string postdata = "")
|
||||
{
|
||||
return Post("shop/mdy_shop_cookie_and_login_status", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/select_waybill
|
||||
/// </summary>
|
||||
public HttpResult SelectWaybill(string postdata = "")
|
||||
{
|
||||
return Post("shop/select_waybill", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/set_shop_sub_sa
|
||||
/// </summary>
|
||||
public HttpResult SetShopSubSa(string postdata = "")
|
||||
{
|
||||
return Post("shop/set_shop_sub_sa", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/update_add_prod_remaining
|
||||
/// </summary>
|
||||
public HttpResult UpdateAddProdRemaining(string postdata = "")
|
||||
{
|
||||
return Post("shop/update_add_prod_remaining", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/update_used_waybill
|
||||
/// </summary>
|
||||
public HttpResult UpdateUsedWaybill(string postdata = "")
|
||||
{
|
||||
return Post("shop/update_used_waybill", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/wx_add_mdy_29wx_pdd_shop
|
||||
/// </summary>
|
||||
public HttpResult WxAddMdy29wxPddShop(string postdata = "")
|
||||
{
|
||||
return Post("shop/wx_add_mdy_29wx_pdd_shop", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/wx_add_mdy_buy_url_notes
|
||||
/// </summary>
|
||||
public HttpResult WxAddMdyBuyUrlNotes(string postdata = "")
|
||||
{
|
||||
return Post("shop/wx_add_mdy_buy_url_notes", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/wx_add_mdy_order_address
|
||||
/// </summary>
|
||||
public HttpResult WxAddMdyOrderAddress(string postdata = "")
|
||||
{
|
||||
return Post("shop/wx_add_mdy_order_address", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/wx_add_mdy_shop_default_address
|
||||
/// </summary>
|
||||
public HttpResult WxAddMdyShopDefaultAddress(string postdata = "")
|
||||
{
|
||||
return Post("shop/wx_add_mdy_shop_default_address", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/wx_del_shop_default_address
|
||||
/// </summary>
|
||||
public HttpResult WxDelShopDefaultAddress(string postdata = "")
|
||||
{
|
||||
return Post("shop/wx_del_shop_default_address", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/wx_get_29wx_pdd_shop
|
||||
/// </summary>
|
||||
public HttpResult WxGet29wxPddShop(string postdata = "")
|
||||
{
|
||||
return Post("shop/wx_get_29wx_pdd_shop", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/wx_get_buy_url_notes
|
||||
/// </summary>
|
||||
public HttpResult WxGetBuyUrlNotes(string postdata = "")
|
||||
{
|
||||
return Post("shop/wx_get_buy_url_notes", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/wx_get_order_address
|
||||
/// </summary>
|
||||
public HttpResult WxGetOrderAddress(string postdata = "")
|
||||
{
|
||||
return Post("shop/wx_get_order_address", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/wx_get_shop_default_address_list
|
||||
/// </summary>
|
||||
public HttpResult WxGetShopDefaultAddressList(string postdata = "")
|
||||
{
|
||||
return Post("shop/wx_get_shop_default_address_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/wx_mdy_29wx_pdd_cookie_and_login_status
|
||||
/// </summary>
|
||||
public HttpResult WxMdy29wxPddCookieAndLoginStatus(string postdata = "")
|
||||
{
|
||||
return Post("shop/wx_mdy_29wx_pdd_cookie_and_login_status", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// taobao_id&act=add
|
||||
/// </summary>
|
||||
public HttpResult AddTaobaoId(string postdata = "")
|
||||
{
|
||||
return Post("taobao_id&act=add", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// taobao_id&act=get
|
||||
/// </summary>
|
||||
public HttpResult GetTaobaoId(string postdata = "")
|
||||
{
|
||||
return Post("taobao_id&act=get", postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 拼多多服务接口
|
||||
/// <summary>
|
||||
/// shop/add_vdian
|
||||
/// </summary>
|
||||
public HttpResult PddAddVdian(string postdata = "")
|
||||
{
|
||||
return PostPdd("shop/add_vdian", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/add_weidian_shop
|
||||
/// </summary>
|
||||
public HttpResult PddAddWeidianShop(string postdata = "")
|
||||
{
|
||||
return PostPdd("shop/add_weidian_shop", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/admin_get_shop_list
|
||||
/// </summary>
|
||||
public HttpResult PddAdminGetShopList(string postdata = "")
|
||||
{
|
||||
return PostPdd("shop/admin_get_shop_list", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/del_weidian_shop
|
||||
/// </summary>
|
||||
public HttpResult PddDelWeidianShop(string postdata = "")
|
||||
{
|
||||
return PostPdd("shop/del_weidian_shop", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/e57_get_pdd_shop_token
|
||||
/// </summary>
|
||||
public HttpResult PddE57GetPddShopToken(string postdata = "")
|
||||
{
|
||||
return PostPdd("shop/e57_get_pdd_shop_token", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/get_pdd_client_info
|
||||
/// </summary>
|
||||
public HttpResult PddGetPddClientInfo(string postdata = "")
|
||||
{
|
||||
return PostPdd("shop/get_pdd_client_info", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/get_shop_client_info
|
||||
/// </summary>
|
||||
public HttpResult PddGetShopClientInfo(string postdata = "")
|
||||
{
|
||||
return PostPdd("shop/get_shop_client_info", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/mdy_vdian
|
||||
/// </summary>
|
||||
public HttpResult PddMdyVdian(string postdata = "")
|
||||
{
|
||||
return PostPdd("shop/mdy_vdian", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/mdy_vdian_cookie
|
||||
/// </summary>
|
||||
public HttpResult PddMdyVdianCookie(string postdata = "")
|
||||
{
|
||||
return PostPdd("shop/mdy_vdian_cookie", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// shop/mdy_weidian_shop_cookie
|
||||
/// </summary>
|
||||
public HttpResult PddMdyWeidianShopCookie(string postdata = "")
|
||||
{
|
||||
return PostPdd("shop/mdy_weidian_shop_cookie", postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,398 @@
|
||||
using MAX.Core.DependencyInjection;
|
||||
using MAX.Core.Extensions;
|
||||
using MAX.Core.Helpers;
|
||||
using Store.Client.Agent;
|
||||
using Store.Client.Commons;
|
||||
using Store.Client.Extensions;
|
||||
using Store.Client.HttpExtension;
|
||||
using Store.Framework;
|
||||
using Store.Framework.Tools;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Store.Client.Apis
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户操作Api
|
||||
/// 登录,注册
|
||||
/// </summary>
|
||||
public partial class UserApi : AppApiRequestBase, ITransientDependency
|
||||
{
|
||||
|
||||
public HttpResult Login(string username, string password)
|
||||
{
|
||||
_logger.Info("123");
|
||||
int r2 = RandomHelper.GetRandomNumber(100000000, 899999999); //生成随机码
|
||||
ServerHttpItem item = new ServerHttpItem();
|
||||
item.URL = base.BuildServiceUrl("user/user_login");
|
||||
item.Method = MethodType.Post;
|
||||
Dictionary<string, string> param = new Dictionary<string, string>
|
||||
{
|
||||
{ "mobile", username },
|
||||
{ "r2", r2.ToString() },
|
||||
{ "password", password },
|
||||
{ "hw_code", HardwareTool.HardWareCode },
|
||||
{ "hw_code_new", HardwareTool.HardWareCodeNew },
|
||||
{ "hw_code_v3", HardwareTool.HardWareCodeV3 },
|
||||
{ "agent_code", AgentConfig.AgentCode },
|
||||
{ "version",Config.Version}
|
||||
//,
|
||||
//{ "client_ip", _client.Ip },
|
||||
//{ "client_addr", _client.Address }
|
||||
};
|
||||
item.Postdata = param.ToUrlParams();
|
||||
item.Sign();
|
||||
HttpResult result = ServerRequest(item);
|
||||
if (result.StatusCode == HttpStatusCode.OK)
|
||||
{
|
||||
string chCode = Regex.Match(result.Html, "<c>([^<]+)</c>")?.Groups[1]?.Value ?? "";
|
||||
if (!string.IsNullOrEmpty(chCode))
|
||||
{
|
||||
string codex = SignTool.Encryption(r2);
|
||||
if (chCode != codex)
|
||||
{
|
||||
result.StatusCode = HttpStatusCode.Unauthorized;
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#region 默认服务接口
|
||||
/// <summary>
|
||||
/// user&act=add_user_lock
|
||||
/// </summary>
|
||||
public HttpResult AddUserLock(string postdata = "")
|
||||
{
|
||||
return Post("user&act=add_user_lock", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/add_sub_user
|
||||
/// </summary>
|
||||
public HttpResult AddSubUser(string postdata = "")
|
||||
{
|
||||
return Post("user/add_sub_user", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/add_user
|
||||
/// </summary>
|
||||
public HttpResult AddUser(string postdata = "")
|
||||
{
|
||||
return Post("user/add_user", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/apply_oem_withdrawal
|
||||
/// </summary>
|
||||
public HttpResult ApplyOemWithdrawal(string postdata = "")
|
||||
{
|
||||
return Post("user/apply_oem_withdrawal", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/delete_user
|
||||
/// </summary>
|
||||
public HttpResult DeleteUser(string postdata = "")
|
||||
{
|
||||
return Post("user/delete_user", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/get_all_user
|
||||
/// </summary>
|
||||
public HttpResult GetAllUser(string postdata = "")
|
||||
{
|
||||
return Post("user/get_all_user", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/get_package_sign
|
||||
/// </summary>
|
||||
public HttpResult GetPackageSign(string postdata = "")
|
||||
{
|
||||
return Post("user/get_package_sign", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/get_sub_user
|
||||
/// </summary>
|
||||
public HttpResult GetSubUser(string postdata = "")
|
||||
{
|
||||
return Post("user/get_sub_user", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/get_user_amount
|
||||
/// </summary>
|
||||
public HttpResult GetUserAmount(string postdata = "")
|
||||
{
|
||||
return Post("user/get_user_amount", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/is_get_return_package
|
||||
/// </summary>
|
||||
public HttpResult IsGetReturnPackage(string postdata = "")
|
||||
{
|
||||
return Post("user/is_get_return_package", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/oem_audit_withdrawal
|
||||
/// </summary>
|
||||
public HttpResult OemAuditWithdrawal(string postdata = "")
|
||||
{
|
||||
return Post("user/oem_audit_withdrawal", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/oem_settle_flows
|
||||
/// </summary>
|
||||
public HttpResult OemSettleFlows(string postdata = "")
|
||||
{
|
||||
return Post("user/oem_settle_flows", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/oem_withdrawals
|
||||
/// </summary>
|
||||
public HttpResult OemWithdrawals(string postdata = "")
|
||||
{
|
||||
return Post("user/oem_withdrawals", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/update_sub_user
|
||||
/// </summary>
|
||||
public HttpResult UpdateSubUser(string postdata = "")
|
||||
{
|
||||
return Post("user/update_sub_user", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/update_user
|
||||
/// </summary>
|
||||
public HttpResult UpdateUser(string postdata = "")
|
||||
{
|
||||
return Post("user/update_user", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/update_user_balance
|
||||
/// </summary>
|
||||
public HttpResult UpdateUserBalance(string postdata = "")
|
||||
{
|
||||
return Post("user/update_user_balance", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/update_user_points
|
||||
/// </summary>
|
||||
public HttpResult UpdateUserPoints(string postdata = "")
|
||||
{
|
||||
return Post("user/update_user_points", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/user_login
|
||||
/// </summary>
|
||||
public HttpResult UserLogin(string postdata = "")
|
||||
{
|
||||
return PostPublic("user/user_login", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user_login_cookies&act=get
|
||||
/// </summary>
|
||||
public HttpResult GetUserLoginCookies(string postdata = "")
|
||||
{
|
||||
return Post("user_login_cookies&act=get", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user_login_cookies&act=insert
|
||||
/// </summary>
|
||||
public HttpResult InsertUserLoginCookies(string postdata = "")
|
||||
{
|
||||
return Post("user_login_cookies&act=insert", postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 拼多多服务接口
|
||||
/// <summary>
|
||||
/// user/add_buyer
|
||||
/// </summary>
|
||||
public HttpResult PddAddBuyer(string postdata = "")
|
||||
{
|
||||
return PostPdd("user/add_buyer", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/del_buyer
|
||||
/// </summary>
|
||||
public HttpResult PddDelBuyer(string postdata = "")
|
||||
{
|
||||
return PostPdd("user/del_buyer", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/get_buyer
|
||||
/// </summary>
|
||||
public HttpResult PddGetBuyer(string postdata = "")
|
||||
{
|
||||
return PostPdd("user/get_buyer", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/get_scm121_cookie
|
||||
/// </summary>
|
||||
public HttpResult PddGetScm121Cookie(string postdata = "")
|
||||
{
|
||||
return PostPdd("user/get_scm121_cookie", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/mdy_buyer
|
||||
/// </summary>
|
||||
public HttpResult PddMdyBuyer(string postdata = "")
|
||||
{
|
||||
return PostPdd("user/mdy_buyer", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/mdy_buyer_cookie
|
||||
/// </summary>
|
||||
public HttpResult PddMdyBuyerCookie(string postdata = "")
|
||||
{
|
||||
return PostPdd("user/mdy_buyer_cookie", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/update_scm121_cookie
|
||||
/// </summary>
|
||||
public HttpResult PddUpdateScm121Cookie(string postdata = "")
|
||||
{
|
||||
return PostPdd("user/update_scm121_cookie", postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 微信服务接口
|
||||
/// <summary>
|
||||
/// user/add_mdy_oem
|
||||
/// </summary>
|
||||
public HttpResult WxAddMdyOem(string postdata = "")
|
||||
{
|
||||
return PostWx("user/add_mdy_oem", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/del_oem
|
||||
/// </summary>
|
||||
public HttpResult WxDelOem(string postdata = "")
|
||||
{
|
||||
return PostWx("user/del_oem", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/get_all_user
|
||||
/// </summary>
|
||||
public HttpResult WxGetAllUser(string postdata = "")
|
||||
{
|
||||
return PostWx("user/get_all_user", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/get_e57_authorization
|
||||
/// </summary>
|
||||
public HttpResult WxGetE57Authorization(string postdata = "")
|
||||
{
|
||||
return PostWx("user/get_e57_authorization", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/get_oem
|
||||
/// </summary>
|
||||
public HttpResult WxGetOem(string postdata = "")
|
||||
{
|
||||
return PostWx("user/get_oem", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/get_oem_config_info
|
||||
/// </summary>
|
||||
public HttpResult WxGetOemConfigInfo(string postdata = "")
|
||||
{
|
||||
return PostWx("user/get_oem_config_info", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/get_oem_version
|
||||
/// </summary>
|
||||
public HttpResult WxGetOemVersion(string postdata = "")
|
||||
{
|
||||
return PostWx("user/get_oem_version", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/get_top_up_qrcode
|
||||
/// </summary>
|
||||
public HttpResult WxGetTopUpQrcode(string postdata = "")
|
||||
{
|
||||
return PostWx("user/get_top_up_qrcode", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/get_user_balance
|
||||
/// </summary>
|
||||
public HttpResult WxGetUserBalance(string postdata = "")
|
||||
{
|
||||
return PostWx("user/get_user_balance", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/get_user_points
|
||||
/// </summary>
|
||||
public HttpResult WxGetUserPoints(string postdata = "")
|
||||
{
|
||||
return PostWx("user/get_user_points", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/get_wx_sale_assistant_cookie
|
||||
/// </summary>
|
||||
public HttpResult WxGetWxSaleAssistantCookie(string postdata = "")
|
||||
{
|
||||
return PostWx("user/get_wx_sale_assistant_cookie", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/update_top_up_qrcode
|
||||
/// </summary>
|
||||
public HttpResult WxUpdateTopUpQrcode(string postdata = "")
|
||||
{
|
||||
return PostWx("user/update_top_up_qrcode", postdata);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// user/update_wx_sale_assistant_cookie
|
||||
/// </summary>
|
||||
public HttpResult WxUpdateWxSaleAssistantCookie(string postdata = "")
|
||||
{
|
||||
return PostWx("user/update_wx_sale_assistant_cookie", postdata);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user