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; } } }