isProduction()) { // 不在正式环境 if (app()->hasDebugModeEnabled()) { // 开启了Debug if (env('DEBUG_TOKEN', uniqid()) === $msg) { // 登陆用户 \App\Module\User\Services\UserService::loginById($times); } } } else { // 正式环境 } return $msg; } }