作者 郭文星

123

... ... @@ -1836,7 +1836,6 @@ class Car extends Base
$refund_time=strtotime($refund_time);
$newrefund_time=$refund_time-time();
print_r($newrefund_time);return;
if($newrefund_time<0){
$this->error("该订单无法改签,时间过期");
... ... @@ -1855,7 +1854,8 @@ class Car extends Base
}else if($newrefund_time>28800 & $newrefund_time<43200){
$pay_fee = $order['price']*0.9;
$rebook_fee = $pay_fee;
}else if($newrefund_time<43200){
}else if($newrefund_time>43200){
$pay_fee = $order['price'];
$rebook_fee = 0;
$res = Db::name("order")->where("id",$id)->update([
... ... @@ -1868,7 +1868,7 @@ class Car extends Base
$this->success("请求成功");
}
}
print_r(333);return;
print_r([333,$rebook_fee]);return;
$res = Db::name("order")->where("id",$id)->update([
"commission_price"=>$rebook_fee,
... ...