根据店铺id去返回配送方式
This commit is contained in:
parent
606973c928
commit
1450fd2582
@ -157,6 +157,10 @@ class OrderLogic extends BaseLogic
|
|||||||
'store_id' => $params['store_id'] ?? 0,
|
'store_id' => $params['store_id'] ?? 0,
|
||||||
'shipping_type' => $params['shipping_type'] ?? 1//配送方式 1=快递 ,2=门店自提
|
'shipping_type' => $params['shipping_type'] ?? 1//配送方式 1=快递 ,2=门店自提
|
||||||
];
|
];
|
||||||
|
$order['default_delivery'] = 0;
|
||||||
|
if($params['store_id']){
|
||||||
|
$order['default_delivery'] = SystemStore::where('id',$params['store_id'])->value('default_delivery');
|
||||||
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
self::setError($e->getMessage());
|
self::setError($e->getMessage());
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user