Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
krissss committed Aug 27, 2022
2 parents a5abaa5 + 72de27a commit d1d7572
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Amis.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function response(array $data, string $msg = '', array $extra = []): Resp
$data = array_merge([
'status' => $msg ? 1 : 0,
'msg' => $msg,
'data' => $data ?? '{}',
'data' => $data ?: '{}',
], $extra);

return json($data, JSON_UNESCAPED_UNICODE);
Expand Down Expand Up @@ -91,4 +91,4 @@ public function renderPage(string $title, array $schema = [])

return Raw::render($data['view'], $data, $app);
}
}
}

0 comments on commit d1d7572

Please sign in to comment.