免费咨询热线:15918671994

QQ群1:118466153

QQ群2:50056937

扫描二维码

添加客服咨询详情

了解更多,敬请垂询 15918671994

您还可以

在线咨询

添加微信立即咨询

咨询热线:15918671994

—— 专业电商系统及解决方案提供服务商 ——

多用户
商城系统

订单
管理系统

订货
管理系统

多语言
商城系统

商淘云S2B2C多用户商城系统

平台演示 演示地址 账号密码
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

  • 小程序商城

  • 微信商城

查看:12715 回复:1
 挨踢笨笨鸟 
头像
  • 1
    主题
  • 1
    帖子
  • 0
    积分
order模型bug
返回
发表于 2020-05-14 11:49:37         只看该作者
楼主

在\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;
//计算订单总佣金

支持 收藏 举报
商淘技术支持
头像
  • 4
    主题
  • 48
    帖子
  • 0
    积分
发表于 2020-05-15 09:33:24         只看该作者
沙发
跳转至

感谢您的反馈,该问题已转发给相关同事处理。

回复 支持 反对 举报