您还可以
在线咨询添加客服咨询详情
您还可以
在线咨询平台演示 | 演示地址 | 账号密码 |
---|---|---|
PC前端 | http://test.wstmart.net/ |
扫码咨询客服 |
平台后台 | http://test.wstmart.net/admin | |
商家后台 | http://test.wstmart.net/shop | |
供应商后台 | http://test.wstmart.net/supplier/ | |
多语言多商户 | http://dyy.wstmart.net/ |
安卓APP(用浏览器打开)
苹果APP
小程序商城
微信商城
在\wstmart\common\model\order模型中,$orderGoods['goodsType'] 直接赋值,这里应该是改为 $orderGoods['goodsType'] = $goods['goodsType'];
具体代码如下:
//创建订单商品记录
$orderGgoods = [];
$orderGoods['orderId'] = $orderId;
$orderGoods['goodsId'] = $goods['goodsId'];
$orderGoods['goodsNum'] = $goods['cartNum'];
$orderGoods['goodsPrice'] = $goods['shopPrice'];
$orderGoods['goodsSpecId'] = 0;
$orderGoods['goodsSpecNames'] = '';
$orderGoods['goodsName'] = $goods['goodsName'];
$orderGoods['goodsImg'] = $goods['goodsImg'];
$orderGoods['commissionRate'] = WSTGoodsCommissionRate($goods['goodsCatId']);
$orderGoods['goodsCode'] = '';
$orderGoods['goodsType'] = 1;
$orderGoods['extraJson'] = json_encode($goodsCards);
$orderGoods['promotionJson'] = '';
$orderGoods["orderGoodscommission"] = 0;
//计算订单总佣金