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

interface

... ... @@ -127,7 +127,7 @@ class UsersController extends HomeBaseController{
public function getOrderById(){
$users_id=$this->request->param('users_id');
$order= Db::name('order')->where(['users_id'=>$users_id,'state'=>1])->find();
$order= Db::name('order')->field('order_no,start_time')->where(['users_id'=>$users_id,'state'=>1])->find();
$order['end_time']=time();
$order['time']=ceil(($order['end_time']-$order['start_time'])/3600);
$price=new OrderController();
... ...