Commit 0d968e37 authored by suntengda's avatar suntengda

update app-拼单 自提点列表 兼容客户端传NaN字符串问题

parent 5b344da1
......@@ -131,6 +131,14 @@ class TakePlaceService
$page = $params['page'] ?? 1;
$limit = $params['limit'] ?? 20;
//兼容客户端传递NaN字符串的问题
if(!empty($longitude) && !is_numeric($longitude)) {
$longitude = '';
}
if(!empty($latitude) && !is_numeric($latitude)) {
$latitude = '';
}
$offset = ($page-1)*$limit;
$res = ['list'=>[],'total'=>0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment