...
|
...
|
@@ -162,7 +162,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'=>2]);
|
|
|
Db::name('users')->where('id',$users_id)->update(['is_free'=>1]);
|
|
|
Log::init([
|
|
|
'type' => 'File',
|
|
|
'path' => APP_PATH.'logs/'
|
...
|
...
|
|