作者 郭文星

1231

... ... @@ -1823,6 +1823,14 @@ class Car extends Base
// print_r([$create_time,$newtime]);
$pay_fee = $order['price'];
$rebook_fee = 0;
$res = Db::name("order")->update([
"commission_price"=>$rebook_fee,
"rebook"=>1,
"reservation_time" => $reservation_time,
"order_no" => getOrderSn(),
"create_time"=>time()
]);
$this->success("请求成功");
}else {
$refund_time=strtotime($refund_time);
$newrefund_time=$refund_time-time();
... ... @@ -1863,9 +1871,6 @@ class Car extends Base
"reservation_time" => $reservation_time,
"create_time"=>time()
]);
if($rebook_fee>0){
$neworder=Db::name("order")->where("id", $id)->find();
$userinfo = Db::name('user')
->where(['id' => $this->auth->id])
... ... @@ -1882,8 +1887,6 @@ class Car extends Base
];
$f = \addons\epay\library\Service::submitOrder($params);
$this->success("请求成功", $f);
}else{
$this->success("改签成功");
}
}
}
\ No newline at end of file
... ...