<develop>:(ShopERP 端)<无> ShopERP. WebAPI 接口首页页面加载。

parent 15c1d375
...@@ -160,7 +160,26 @@ namespace CoreCms.Net.Services ...@@ -160,7 +160,26 @@ namespace CoreCms.Net.Services
payStatus = 0, // 未支付 payStatus = 0, // 未支付
shipStatus = 0, // 未发货 shipStatus = 0, // 未发货
goodsAmount = inputParam.Items.Sum(i => i.Price * i.Quantity), goodsAmount = inputParam.Items.Sum(i => i.Price * i.Quantity),
orderAmount = inputParam.Items.Sum(i => i.Price * i.Quantity) orderAmount = inputParam.Items.Sum(i => i.Price * i.Quantity),
//配送人姓名
shipName = inputParam.shipName,
//配送国家
shipCountryCode = inputParam.shipCountryCode,
//配送州/省
shipProvince = inputParam.shipProvince,
//配送城市
shipCity = inputParam.shipCity,
//配送地址
shipAddress = inputParam.shipAddress,
shipAddress2 = inputParam.shipAddress2,
//配送电话
shipMobile = inputParam.shipMobile,
//配送邮箱
shipEmail = inputParam.shipEmail,
//配送邮编
shipPostCode = inputParam.shipPostCode
}; };
var orderItems = inputParam.Items.Select(item => new CoreCmsOrderItem var orderItems = inputParam.Items.Select(item => new CoreCmsOrderItem
......
{
"UserId": 10001,
"platName": "Amazon",
"platOrderID": "AMZ-20230912-123456",
"shipName": "张明",
"shipAddress": "北京市朝阳区建国路88号",
"shipMobile": "13800138000",
"shipAddress2": "华贸中心3号楼15层",
"shipCountryCode": "CN",
"shipProvince": "北京市",
"shipCity": "北京市",
"shipEmail": "zhangming@example.com",
"shipPostCode": "100025",
"Items": [
{
"GoodsId": 3021,
"Name": "无线蓝牙耳机",
"Price": 299.00,
"Quantity": 2
},
{
"GoodsId": 4456,
"Name": "Type-C充电线",
"Price": 49.90,
"Quantity": 3
}
]
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment