Skip to content

Commit b319b3b

Browse files
committed
update 单条件没查询成功的返回
1 parent e85f9b6 commit b319b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/ApiJson/Method/GetMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ protected function process()
2323
$result = $this->query->all();
2424
!$queryMany && $result = current($result);
2525

26-
return $result;
26+
return $result ?: [];
2727
}
2828
}

0 commit comments

Comments
 (0)