正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论