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