作者 sgj
1 个管道 的构建 通过 耗费 0 秒

修改订单列表时间

@@ -174,6 +174,10 @@ class UsersController extends HomeBaseController{ @@ -174,6 +174,10 @@ class UsersController extends HomeBaseController{
174 $users_id=$this->request->param('users_id'); 174 $users_id=$this->request->param('users_id');
175 $order=Db::name('order')->where(['users_id'=>$users_id])->paginate(8); 175 $order=Db::name('order')->where(['users_id'=>$users_id])->paginate(8);
176 $data=$order->items(); 176 $data=$order->items();
  177 + foreach ($data as $k=>$v){
  178 + $time_info=$this->getTimeInfo($v['start_time'],$v['end_time']);
  179 + $data[$k]=array_merge($data[$k],$time_info);
  180 + }
177 dump($data); 181 dump($data);
178 exit; 182 exit;
179 $data=[ 183 $data=[