Commit 5bd11a3b authored by liuyuzhen's avatar liuyuzhen

订单确认问题

parent 1e855756
...@@ -737,6 +737,13 @@ class CartServiceModel extends \Business\AbstractModel{ ...@@ -737,6 +737,13 @@ class CartServiceModel extends \Business\AbstractModel{
$deliverySetting['other'] = $deliverTimeList['other']?$deliverTimeList['other']:\Our\ApiConst::zero; $deliverySetting['other'] = $deliverTimeList['other']?$deliverTimeList['other']:\Our\ApiConst::zero;
} }
} }
}else{
$sess=\Yaf\Session::getInstance();
$currentAddress = $sess->get('currentAddress');
$result = \Store\StoreUtil::getInstance()->checkAddressInServiceArea(array('lng'=>$currentAddress['lng'],'lat'=>$currentAddress['lat']),$storeId);
if($result){
$deliverySetting['inServiceAreaFlag'] = \Our\ApiConst::one;
}
} }
}else{ }else{
$deliverySetting['sellerDistribution'] = \Our\ApiConst::zero; $deliverySetting['sellerDistribution'] = \Our\ApiConst::zero;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment