商户创建订单默认shipping_type值为3
This commit is contained in:
parent
2c2baf4135
commit
56f22df5c4
@ -85,6 +85,7 @@ class StoreOrderController extends BaseAdminController
|
||||
$params = $this->request->post();
|
||||
$params['store_id'] = $this->adminInfo['store_id'];
|
||||
$user = User::where('id', $params['uid'])->find();
|
||||
$params['shipping_type'] =3;
|
||||
$res = StoreOrderLogic::cartIdByOrderInfo($cartId, null, $user, $params);
|
||||
if ($res == false) {
|
||||
$msg = StoreOrderLogic::getError();
|
||||
@ -169,6 +170,7 @@ class StoreOrderController extends BaseAdminController
|
||||
$user = User::where('id', $uid)->find();
|
||||
}
|
||||
$params['store_id'] = $this->request->adminInfo['store_id']; //当前登录的店铺id,用于判断是否是当前店铺的订单
|
||||
$params['shipping_type'] =3;
|
||||
$order = OrderLogic::createOrder($cartId, $addressId, $user, $params);
|
||||
if ($order != false) {
|
||||
switch ($pay_type) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user