...
|
...
|
@@ -161,7 +161,7 @@ class OrderController extends HomeBaseController{ |
|
|
$price +=(ceil(($new_end_time-$new_start_time)/3600) * $cost['cost']);
|
|
|
if ($free==1 && $is_free==0){
|
|
|
$price-=$cost['cost'];
|
|
|
Db::name('users')->where('id',$users_id)->update(['is_free'=>1]);
|
|
|
Db::name('users')->where('id',$users_id)->update(['is_free'=>2]);
|
|
|
}
|
|
|
}
|
|
|
//与预设时间段的头部重合
|
...
|
...
|
|