order("id desc")->paginate(["list_row" => $limit, "page" => $page])->each(function ($item) { $user = \app\common\model\User::where(["id" => $item["buy_user"]])->field("name")->find(); $item["user_name"] = $user->name; $item["add_time"]=date("Y-m-d H:i:s",$item["add_time"]); return $item; })->toArray(); return $result = ['code' => 0, 'msg' => lang('get info success'), 'data' => $list['data'] ?: [], 'count' => $list['total'] ?: 0]; } return View::fetch(); } /** * 持有订单列表 */ public function push() { } /** * 申述处理 */ public function bond() { } }