Commit 46e2142d by 朱继来

审核时回写自营商品ID

parent 6d3fd061
Showing with 4 additions and 2 deletions
......@@ -908,7 +908,7 @@ Class OrderController extends Controller
if ($order_goods_type == 1) {
$pingtai_id = Config('config.pingtai_id');
foreach ($resData['change_info'] as $v) {
foreach ($resData['change_info'] as &$v) {
if ($v['status'] == -1) continue;
if ($v['buyer_id'] == $pingtai_id) {
......@@ -937,7 +937,9 @@ Class OrderController extends Controller
if ($v['goods_number'] % $goods_info['mpl'] != 0) {
return ['errcode'=>-1, 'errmsg'=>'请求基石库存接口,'.$v['goods_name'].'型号倍数不满足下单条件,当前商品倍数为'.$goods_info['mpl']];
}
}
$v['goods_id'] = $goods_info['goods_id']; // 回写自营商品ID
}
}
}
......
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 sign in to comment