Merge branch 'dev' of https://gitea.lihaink.cn/mkm/multi-store into dev
This commit is contained in:
commit
13cbad9329
@ -297,17 +297,16 @@ class OrderLogic extends BaseLogic
|
||||
|
||||
public static function purchaseAgain($order_id)
|
||||
{
|
||||
$arr = StoreOrderCartInfo::where('oid', $order_id)->field('product_id,cart_num,staff_id')->select();
|
||||
$arr = StoreOrderCartInfo::where('oid', $order_id)->field('product_id,cart_num,staff_id,store_id')->select();
|
||||
$data = [];
|
||||
foreach ($arr as $k => $v) {
|
||||
$data[$k]['product_id'] = $v['product_id'];
|
||||
$unique = StoreProductAttrValue::where('product_id', $v['product_id'])->value('v');
|
||||
$data[$k]['product_attr_unique'] = $unique;
|
||||
// $unique = StoreProductAttrValue::where('product_id', $v['product_id'])->value('v');
|
||||
$data[$k]['product_attr_unique'] = '';
|
||||
$data[$k]['cart_num'] = $v['cart_num'];
|
||||
$data[$k]['type'] = '';
|
||||
$data[$k]['uid'] = Request()->userId;
|
||||
$store_id = StoreProduct::where('id', $v['product_id'])->value('store_id');
|
||||
$data[$k]['store_id'] = $store_id;
|
||||
$data[$k]['store_id'] = $v['store_id'];
|
||||
$data[$k]['staff_id'] = $v['staff_id'];
|
||||
$data[$k]['combination_id'] = 0;
|
||||
$data[$k]['seckill_id'] = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user