...
|
...
|
@@ -1811,8 +1811,8 @@ class Car extends Base |
|
|
* @return void
|
|
|
*/
|
|
|
public function rebook(){
|
|
|
$id = $this->request->param("order_id","507");
|
|
|
$reservation_time = $this->request->param("reservation_time","2024-09-10 18:00-18:30");//预约时间
|
|
|
$id = $this->request->param("order_id");
|
|
|
$reservation_time = $this->request->param("reservation_time");//预约时间
|
|
|
$order = Db::name("order")->where("id", $id)->find();
|
|
|
$departure_time=substr($reservation_time,0,16);
|
|
|
$refund_time=substr($order['reservation_time'],0,16);
|
...
|
...
|
@@ -1827,8 +1827,7 @@ class Car extends Base |
|
|
"commission_price"=>$rebook_fee,
|
|
|
"rebook"=>1,
|
|
|
"reservation_time" => $reservation_time,
|
|
|
"order_no" => getOrderSn(),
|
|
|
"create_time"=>time()
|
|
|
"order_no" => getOrderSn()
|
|
|
]);
|
|
|
$data=[
|
|
|
"pay"=>'',
|
...
|
...
|
@@ -1849,8 +1848,7 @@ class Car extends Base |
|
|
->update([
|
|
|
"commission_price"=>$rebook_fee,
|
|
|
"rebook"=>1,
|
|
|
"order_no" => getOrderSn(),
|
|
|
"create_time"=>time()
|
|
|
"order_no" => getOrderSn()
|
|
|
]);
|
|
|
$data=[
|
|
|
"pay"=>'',
|
...
|
...
|
@@ -1864,8 +1862,7 @@ class Car extends Base |
|
|
"commission_price"=>$rebook_fee,
|
|
|
"rebook"=>1,
|
|
|
"reservation_time" => $reservation_time,
|
|
|
"order_no" => getOrderSn(),
|
|
|
"create_time"=>time()
|
|
|
"order_no" => getOrderSn()
|
|
|
]);
|
|
|
$data=[
|
|
|
"pay"=>'',
|
...
|
...
|
@@ -1883,15 +1880,14 @@ class Car extends Base |
|
|
* @return void
|
|
|
*/
|
|
|
public function countrebook(){
|
|
|
$id = $this->request->param("order_id","507");
|
|
|
$reservation_time = $this->request->param("reservation_time","2024-09-10 18:00-18:30");//预约时间
|
|
|
$id = $this->request->param("order_id");
|
|
|
$reservation_time = $this->request->param("reservation_time");//预约时间
|
|
|
$order = Db::name("order")->where("id", $id)->find();
|
|
|
$departure_time=substr($reservation_time,0,16);
|
|
|
$refund_time=substr($order['reservation_time'],0,16);
|
|
|
//下单五分钟后五收取手续费
|
|
|
$create_time=$order['create_time'];
|
|
|
$newtime=time()-$create_time;
|
|
|
|
|
|
try {
|
|
|
if($newtime<300){
|
|
|
// print_r([$create_time,$newtime]);
|
...
|
...
|
|