...
|
...
|
@@ -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();
|
...
|
...
|
|