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

修改订单列表时间

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