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

interface

@@ -113,7 +113,7 @@ class OrderController extends HomeBaseController{ @@ -113,7 +113,7 @@ class OrderController extends HomeBaseController{
113 } 113 }
114 114
115 115
116 - public function getPrice($users_id,$start_time,$end_time){ 116 + public function getPrice($users_id,$start_time=1543472707,$end_time=1543481349){
117 $cost=Db::name('cost')->where('id',1)->find(); 117 $cost=Db::name('cost')->where('id',1)->find();
118 $interval = Db::name('interval')->where('id',1)->find(); 118 $interval = Db::name('interval')->where('id',1)->find();
119 $is_free=Db::name('users')->where('id',$users_id)->find()['is_free']; 119 $is_free=Db::name('users')->where('id',$users_id)->find()['is_free'];
@@ -236,7 +236,6 @@ class OrderController extends HomeBaseController{ @@ -236,7 +236,6 @@ class OrderController extends HomeBaseController{
236 }else{ 236 }else{
237 dump('woca '); 237 dump('woca ');
238 } 238 }
239 - dump($price);  
240 if ($price > $cost['ceiling']){ 239 if ($price > $cost['ceiling']){
241 $price = $cost['ceiling']; 240 $price = $cost['ceiling'];
242 } 241 }