63 lines
2.8 KiB
C#
63 lines
2.8 KiB
C#
using AllBase;
|
|
using AllBase.Model.DBModel;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Work._29Tools.Forms.ShopForms;
|
|
|
|
namespace Work._29Tools.BLL
|
|
{
|
|
public class WxSimOrderSendBLL
|
|
{
|
|
public static string initDeliveryInfo(ShopLoginInfo shop, string orderId)
|
|
{
|
|
string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeorder/ship/cgi/initShipData?token=&lang=zh_CN";
|
|
string body = @"{""id"":""" + orderId + @"""}";
|
|
|
|
string refere = "https://store.weixin.qq.com/shop/order/list";
|
|
var result = HttpResponseWXBLL.WeiXinPostResponse(shop, url, body, refere);
|
|
return result;
|
|
}
|
|
|
|
public static string orderSendOut(ShopLoginInfo shop, string orderId, string waybillId)
|
|
{
|
|
string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeorder/ship/cgi/orderSendOut?token=&lang=zh_CN";
|
|
string body = @"{""orderId"":""" + orderId + @""",""deliveryProduct"":{""deliveryId"":""OTHER"",""waybillId"":""" + waybillId + @""",""isAllProduct"":true,""deliverType"":1}}";
|
|
|
|
string refere = "https://store.weixin.qq.com/shop/order/list?type=3";
|
|
var result = HttpResponseWXBLL.WeiXinPostResponse(shop, url, body, refere);
|
|
return result;
|
|
}
|
|
|
|
public static string updateDeliveryInfo(ShopLoginInfo shop, UpdateDeliverInfoParam param)
|
|
{
|
|
string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeorder/ship/cgi/updateDeliveryInfo?token=&lang=zh_CN";
|
|
string body = JsonHelper.SerializeObject(param);
|
|
|
|
string refere = "https://store.weixin.qq.com/shop/order/list?type=3";
|
|
var result = HttpResponseWXBLL.WeiXinPostResponse(shop, url, body, refere);
|
|
return result;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 补发货接口
|
|
/// </summary>
|
|
/// <param name="shop"></param>
|
|
/// <param name="orderIds"></param>
|
|
/// <returns></returns>
|
|
public static string orderCompensationDelivery(ShopLoginInfo shop, string orderId, string deliveryId, string waybillId, string productId, string skuId, int productCnt)
|
|
{
|
|
string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeorder/ship/cgi/compensationDelivery?token=&lang=zh_CN";
|
|
string referer = "https://store.weixin.qq.com/shop/order/list";
|
|
//string body = @"{""orderId"":""3736582240830642176"",""reason"":1,""deliveryProductInfo"":[{""deliveryId"":""EMS"",""waybillId"":""9822445565261"",""productInfos"":[{""productId"":""10000697373414"",""skuId"":""11709320615"",""productCnt"":1}]}]}";
|
|
string body = @"{""orderId"":""" + orderId + @""",""reason"":1,""deliveryProductInfo"":[{""deliveryId"":""" + deliveryId +
|
|
@""",""waybillId"":""" + waybillId + @""",""productInfos"":[{""productId"":""" + productId + @""",""skuId"":""" + skuId +
|
|
@""",""productCnt"":" + productCnt + @"}]}]}";
|
|
var result = HttpResponseWXBLL.WeiXinPostResponse(shop, url, body, referer);
|
|
return result;
|
|
}
|
|
}
|
|
}
|