Commit 6f7a05cf authored by liuyuzhen's avatar liuyuzhen

配送公式修改

parent 99cc6e68
......@@ -65,8 +65,8 @@ class DeliveryFormulaModel extends \DAO\AbstractModel {
if(!$deliveryFormula){
return false;
}
$deliveryFormula['state'] == \Our\ApiConst::one ? $formula = unserialize($deliveryFormula['formula']) : $formula = unserialize($deliveryFormula['simple_formula']);
$formula = unserialize($deliveryFormula['formula']);
//$deliveryFormula['state'] == \Our\ApiConst::one ? $formula = unserialize($deliveryFormula['formula']) : $formula = unserialize($deliveryFormula['simple_formula']);
$formula = unserialize($deliveryFormula['simple_formula']);
ksort($formula);
foreach ($formula as $k=>$v){
if($k*1000 >= $distance){
......
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