laravel 自定义错误返回
/** * @param $code * @param $message * @param $subCode * @param $subMessage * @return array */ protected function returnBadResponse($code, $message, $subCode, $subMessage): array { return [ 'code' => $code, 'message' => $message, 'subCode' => $subCode, 'subMessage'=> $subMessage ]; }