根据店铺id去返回配送方式

This commit is contained in:
liu 2024-06-08 16:35:28 +08:00
parent 606973c928
commit 1450fd2582

View File

@ -157,6 +157,10 @@ class OrderLogic extends BaseLogic
'store_id' => $params['store_id'] ?? 0,
'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) {
self::setError($e->getMessage());
return false;