param('task_id', '', 'int'); try { validate(\app\api\validate\Sample::class)->scene('get_cyd_list')->check($task_id); } catch (ValidateException $exception) { return show(config('status.err_validate'),$exception->getError()); } $result = (new CydBus())->getCydList($task_id); if ($result['total'] == 0) { return showError(config('status.none_cyd_info')); } return showSuccess($result); } }