优化清理无流量逻辑 修复用户导入商品失败问题 图书上传资质文件逻辑完成
This commit is contained in:
1 parent
7d07c83579
commit
3514be2dba
16 files changed
+705
-340
No files matched your search
@@ -2722,6 +2722,9 @@ namespace KJD_Web.BLL.BXX
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
if (!WXUserManage.GetSign(inputData))
|
||||
return "{\"code\":999,\"msg\":\"校验失败\"}";
|
||||
|
||||
//var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt();
|
||||
//string time1 = RegexUtils.GetStringQuery(ref inputData, "code");
|
||||
//if (time1 != EncrypUtil.Encryption(time))
|
||||
@@ -2732,6 +2735,71 @@ namespace KJD_Web.BLL.BXX
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
public string WxApiDropshipSearch(string inputData)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
if (!WXUserManage.GetSign(inputData))
|
||||
return "{\"code\":999,\"msg\":\"校验失败\"}";
|
||||
|
||||
string token = RegexUtils.GetStringQuery(ref inputData, "token", true)?.Replace("'", "\\'");
|
||||
string order_id = RegexUtils.GetStringQuery(ref inputData, "order_id", true)?.Replace("'", "\\'");
|
||||
string status = RegexUtils.GetStringQuery(ref inputData, "status", true)?.Replace("'", "\\'");
|
||||
//string data = "{\"search_condition\":{\"order_id\":\"37000204335323251\" },\"page_info\":{\"offset\": 0,\"limit\":10}}";
|
||||
string data = "{\"search_condition\":{\"order_id\":\"" + order_id + "\",\"status\":" + status + "}}";
|
||||
return HttpUtils.WxApiPostResponse("https://api.weixin.qq.com/channels/ec/order/dropship/search?access_token=" + token, data, "");
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 微信小店分配订单代发
|
||||
/// </summary>
|
||||
/// <param name="inputData"></param>
|
||||
/// <returns></returns>
|
||||
public string WxApiDropshipAssign(string inputData)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
if (!WXUserManage.GetSign(inputData))
|
||||
return "{\"code\":999,\"msg\":\"校验失败\"}";
|
||||
var token = RegexUtils.GetStringQuery(ref inputData, "token")?.Replace("'", "\\'");
|
||||
var order_id = RegexUtils.GetStringQuery(ref inputData, "order_id")?.Replace("'", "\\'");
|
||||
//var supplier_appid = RegexUtils.GetStringQuery(ref inputData, "supplier_appid")?.Replace("'", "\\'");
|
||||
var dropship_product_list = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "dropship_product_list"))?.Replace("'", "\\'");
|
||||
//{
|
||||
// "order_id": "37012940902395351",
|
||||
// "supplier_appid": "wxabc",
|
||||
// "dropship_product_list": [
|
||||
// {
|
||||
// "spu_id": "1253129080",
|
||||
// "sku_id": "2983950535",
|
||||
// "product_cnt": 3
|
||||
// }
|
||||
// ]
|
||||
//}
|
||||
|
||||
//{ "code":0,"data":{ "list":[{ "name":"29供货商","appid":"wxfc630d60a1af6c6f","status":1,"bindAuditStatus":1,"unbindAuditStatus":0,"bindTime":1782903213,"unbindTime":0,"updateTime":1782903213,"actionSource":0,"remark":"","headImg":""}],"totalCount":1} }
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
JObject obj = new JObject();
|
||||
obj["order_id"] = order_id;
|
||||
obj["supplier_appid"] = "wxfc630d60a1af6c6f";
|
||||
JArray array = (JArray.Parse(dropship_product_list));
|
||||
obj["dropship_product_list"] = array;
|
||||
|
||||
return HttpUtils.WxApiPostResponse("https://api.weixin.qq.com/channels/ec/order/dropship/assign?access_token=" + token, JsonUtils.SerializeObject(obj), "");
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||
}
|
||||
|
||||
public string WxApiCategoryClassify(string inputData)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
|
||||
Reference in new issue
Block a user