作者 sgj
1 个管道 的构建 通过 耗费 0 秒

reset free time

@@ -162,7 +162,7 @@ class OrderController extends HomeBaseController{ @@ -162,7 +162,7 @@ class OrderController extends HomeBaseController{
162 $price +=(ceil(($new_end_time-$new_start_time)/3600) * $cost['cost']); 162 $price +=(ceil(($new_end_time-$new_start_time)/3600) * $cost['cost']);
163 if ($free==1 && $is_free==0){ 163 if ($free==1 && $is_free==0){
164 $price-=$cost['cost']; 164 $price-=$cost['cost'];
165 - Db::name('users')->where('id',$users_id)->update(['is_free'=>2]); 165 + Db::name('users')->where('id',$users_id)->update(['is_free'=>1]);
166 Log::init([ 166 Log::init([
167 'type' => 'File', 167 'type' => 'File',
168 'path' => APP_PATH.'logs/' 168 'path' => APP_PATH.'logs/'