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

interface

... ... @@ -113,7 +113,7 @@ class OrderController extends HomeBaseController{
}
public function getPrice($users_id,$start_time,$end_time){
public function getPrice($users_id,$start_time=1543472707,$end_time=1543481349){
$cost=Db::name('cost')->where('id',1)->find();
$interval = Db::name('interval')->where('id',1)->find();
$is_free=Db::name('users')->where('id',$users_id)->find()['is_free'];
... ... @@ -236,7 +236,6 @@ class OrderController extends HomeBaseController{
}else{
dump('woca ');
}
dump($price);
if ($price > $cost['ceiling']){
$price = $cost['ceiling'];
}
... ...