Skip to content

Commit

Permalink
🐛 Fixing a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xxb committed Nov 5, 2019
1 parent 01b067e commit e101da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/api/controller/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected function response($msg = '', $data = [], $code = 200)
$response = Response::create([
'code' => $code,
'msg' => $msg,
'data' => $data,
'data' => $data ?: new \stdClass(),
'time' => time()
], $this->format, 200);

Expand Down

0 comments on commit e101da2

Please sign in to comment.