You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aquaculture/app/Services/StatusServe.php

19 lines
430 B

<?php
namespace App\Services;
use Illuminate\Http\Response;
class StatusServe extends Response
{
const EMAIL_AUTH_FAILED = 499;
/**
* 通过状态码获取默认的响应消息。
* @param $statusCode
* @return string
*/
public static function getStatusMsg($statusCode)
{
return array_key_exists($statusCode, self::$statusTexts) ? self::$statusTexts[$statusCode] : 'SUCCESS';
}
}