ShopWind V3.3.0多店铺合并付款只读一个店铺商品,由于代码版本更新所致。分别修改一下三个应用中的文件,frontend目录为PC端,mobile目录为微商城/H5, apiserver目录为移动端api接口。
1. frontend\controllers\OrderController.php 文件中
$bizOrderId = implode(',', OrderModel::find()->select('order_sn')->where(['in', 'order_id', implode(',', $result)])->column()),
改为:
$bizOrderId = implode(',', OrderModel::find()->select('order_sn')->where(['in', 'order_id', array_values($result)])->column()),
2. mobile\controllers\OrderController.php 文件中
$bizOrderId = implode(',', OrderModel::find()->select('order_sn')->where(['in', 'order_id', implode(',', $result)])->column()),
改为:
$bizOrderId = implode(',', OrderModel::find()->select('order_sn')->where(['in', 'order_id', array_values($result)])->column()),
3. apiserver\controllers\OrderController.php 文件中
$bizOrderId = implode(',', OrderModel::find()->select('order_sn')->where(['in', 'order_id', implode(',', $result)])->column()),
改为:
$bizOrderId = implode(',', OrderModel::find()->select('order_sn')->where(['in', 'order_id', array_values($result)])->column()),
4. apiserver\controllers\CashierController.php 文件中
$post->bizOrderId = (array)$post->bizOrderId;
改为:
$post->bizOrderId = $post->bizOrderId;