where('status', 1)->select()->toArray(); return app('json')->successful($list); } /** * 陪诊服务 * @param Request $request * @return mixed * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException */ public function service(Request $request) { $list = DiagnosisService::select()->where('status', 1)->toArray(); return app('json')->successful($list); } }