Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception : Undefined array key "data" #15

Open
OrangeMas opened this issue Sep 21, 2022 · 0 comments
Open

Exception : Undefined array key "data" #15

OrangeMas opened this issue Sep 21, 2022 · 0 comments

Comments

@OrangeMas
Copy link

环境:WSL1-Ubuntu20.04
使用Github中的Actions部署也为此错误

Exception

Undefined array key "data"

at app/Console/Commands/MogudingCommand.php:70
66▕ ->getBody()
67▕ ->getContents();
68▕ $user = Json::decode($data)['data'];
69▕ } catch (Exception $e) {
➜ 70▕ throw new Exception($e->getMessage() ?: '请求超时', $e->getCode(), $e);
71▕ }
72▕
73▕ $this->info('登录成功!');
74▕

1 app/Console/Commands/MogudingCommand.php:68
ErrorException::("Undefined array key "data"")

2 app/Console/Commands/MogudingCommand.php:68
Illuminate\Foundation\Bootstrap\HandleExceptions::Illuminate\Foundation\Bootstrap{closure}()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant