public function photo_urls(Req $req, Res $res, $args) { $params = $req->getQueryParams(); $jd_id = $args['jd_id'] ?? '0'; $params['jd_id'] = $jd_id; $m_p = new \App\Model\Photo(); $result = $m_p->get_urls($params); return $res->output($result); }