Kaynağa Gözat

升级版本

mead 1 ay önce
ebeveyn
işleme
f7aaf7b994

+ 1 - 0
app/Repositories/Enums/ResponseCodeEnum.php

@@ -41,4 +41,5 @@ class ResponseCodeEnum extends HttpStatusCodeEnum
     const SERVICE_UPDATE_DATA_ERROR = 500103;
     const SERVICE_NOT_FIND_DATA_ERROR = 500104;
     const SERVICE_UPLOAD_ERROR = 500105;
+    const SERVICE_OPTION_ERROR = 500106;
 }

+ 1 - 1
config/response.php

@@ -22,7 +22,7 @@ return [
     | 500, All failed responses return a 500 status code
     */
 
-    'error_code' => false,
+    'error_code' => \App\Repositories\Enums\ResponseCodeEnum::SERVICE_OPTION_ERROR,
 
     // You can use enumerations to define the code when the response is returned,
     // and set the response message according to the locale