Skip to content

Commit

Permalink
fix: 修复过滤自己时的取值错误
Browse files Browse the repository at this point in the history
  • Loading branch information
boxshadow committed Apr 24, 2018
1 parent 5890662 commit b073526
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public function delete(Request $request, ResponseFactory $response, AroundAmapMo
*/
public function getArounds(Request $request, ResponseFactory $response)
{
$user = $request->user('api');
$user = $request->user('api')->id ?? 0;
$latitude = $request->input('latitude', '');
$longitude = $request->input('longitude', '');
if (! $latitude) {
Expand Down

0 comments on commit b073526

Please sign in to comment.