作者 董瑞恩
1 个管道 的构建 通过 耗费 1 秒

interface

... ... @@ -83,7 +83,7 @@ class OrderController extends HomeBaseController{
];
try{
Db::startTrans();
Db::name('users')->where('id',$users_id)->update(['is_use'=>0,'order_no'=>null]);
Db::name('users')->where('id',$users_id)->update(['is_use'=>0]);
Db::name('equipment')->where('name',$name)->update(['use'=>0]);
Db::name('order')->where('order_no',$order['order_no'])->update($data);
}catch (\Exception $exception){
... ... @@ -110,8 +110,10 @@ class OrderController extends HomeBaseController{
//去余数
$yu=($end_time-$start_time)%86400;
$new_start_time=$end_time-$yu;
$new_end_time= $end_time;
$new_start_time=$end_time-$yu;//时间戳
$new_end_time= $end_time;//时间戳
$hours_start_time=date();
$stateTime=strtotime($interval['start_time']);
... ... @@ -124,6 +126,9 @@ class OrderController extends HomeBaseController{
$endTime+=86400;
}else{
//不跨天
... ...