Pārlūkot izejas kodu

高德请求返回错误时,用钉钉报出来

shizhongqi 4 mēneši atpakaļ
vecāks
revīzija
3f7cbb3a3c
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      common/components/mapUtil.php

+ 2 - 0
common/components/mapUtil.php

@@ -83,6 +83,8 @@ class mapUtil
                 // 返回的结果顺序与传入的 origins 顺序一致
                 $distances[$index] = $res['distance'] ?? 0; 
             }
+        }else{
+            noticeUtil::push("高德批量测距接口返回失败:".json_encode($result)." url:".$url);
         }
         
         return $distances;