select()->toArray(); foreach ($list as &$value) { $file_path = UploadFile::where('file_id', $value['image_id'])->field('file_id,file_path,file_type,storage,domain')->find(); $value['image'] = getUrl($file_path['file_path'], $file_path['domain']); } return $this->renderSuccess($list); } /** * @notes:获取小程序配置 * @return Json * @throws DataNotFoundException * @throws DbException * @throws ModelNotFoundException * @author: wanghousheng */ public function wxAppSetting(): Json { $data = (new \app\api\model\wxapp\Setting())->info(); return $this->renderSuccess($data); } }