修改订单
This commit is contained in:
parent
e2d21696cf
commit
1171ad7738
@ -75,7 +75,8 @@ class OrderController extends BaseApiController
|
||||
$where[] = ['is_opurchase', '=', 0];
|
||||
$res = StoreOrder::where($where)->whereDay('create_time', $date)->count();
|
||||
return $this->success('ok', ['order_count' => $res]);
|
||||
}
|
||||
}*/
|
||||
|
||||
public function order_count()
|
||||
{
|
||||
$userId = $this->request->userId;
|
||||
@ -87,7 +88,7 @@ class OrderController extends BaseApiController
|
||||
$where['status'] = 1;
|
||||
$receiving = StoreOrder::where($where)->count();
|
||||
return $this->success('ok', ['no_pay' => $no_pay, 'waiting' => $waiting, 'receiving' => $receiving]);
|
||||
}*/
|
||||
}
|
||||
/**
|
||||
* @notes 检测零售订单
|
||||
*/
|
||||
|
@ -28,9 +28,9 @@ class OrderList extends BaseAdminDataLists implements ListsSearchInterface
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['paid','status','source'],
|
||||
'=' => ['paid','status'],
|
||||
'between_time' => 'create_time',
|
||||
'%like%' => ['number'],
|
||||
'%like%' => ['order_id'],
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ class OrderLogic extends BaseLogic
|
||||
$cart_select[$k]['product_id'] = $v['goods'];
|
||||
$cart_select[$k]['old_cart_id'] = implode(',', $cartId);
|
||||
$cart_select[$k]['cart_num'] = $v['cart_num'];
|
||||
$cart_select[$k]['verify_code'] = $params['verify_code'];
|
||||
$cart_select[$k]['verify_code'] = $params['verify_code']??'';
|
||||
$cart_select[$k]['cart_info'] = json_encode($cart_select[$k]);
|
||||
//理论上每笔都是拆分了
|
||||
// $cart_select[$k]['name'] = $find['store_name'];
|
||||
@ -80,8 +80,8 @@ class OrderLogic extends BaseLogic
|
||||
'total_num' => count($cart_select),//总数
|
||||
'pay_type' => $params['pay_type'] ?? 0,
|
||||
'cart_id' => implode(',', $cartId),
|
||||
'store_id' => $params['store_id'],
|
||||
'shipping_type' => $params['shipping_type']//配送方式 1=快递 ,2=门店自提
|
||||
'store_id' => $params['store_id']??0,
|
||||
'shipping_type' => $params['shipping_type']??1//配送方式 1=快递 ,2=门店自提
|
||||
// 'delivery_msg'=>' 预计48小时发货 '
|
||||
];
|
||||
} catch (\Exception $e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user