| xqd
@@ -127,7 +127,7 @@ if (!function_exists('get_user_distance_field')) {
|
|
|
$latitude = $coordinate['latitude'];
|
|
|
$longitude = $coordinate['longitude'];
|
|
|
if (empty($latitude) || empty($longitude)) {
|
|
|
- return '"未知" distance';
|
|
|
+ return '999999999 distance';
|
|
|
}
|
|
|
|
|
|
return 'if(longitude=0 and latitude=0,999999999,round(6378.138*2*asin(sqrt(pow(sin( (' . $latitude . '*pi()/180-latitude*pi()/180)/2),2)+cos(' . $latitude . '*pi()/180)*cos(latitude*pi()/180)* pow(sin((' . $longitude . '*pi()/180-longitude*pi()/180)/2),2)))*1000)) distance';
|
| xqd
@@ -632,7 +632,7 @@ if (!function_exists('send_wechatSubscription_message')) {
|
|
|
$json = vsprintf($json, $arr);
|
|
|
$data = json_decode($json, true);
|
|
|
$result = $app->uniform_message->send($data);
|
|
|
-
|
|
|
+
|
|
|
order_trace(['公共方法-模板消息进入数据类型3' =>$type , '模板' => $data ?? '', '返回' => $result ?? ''], 'info');
|
|
|
} catch (Exception $e) {
|
|
|
order_trace(['公共方法发送微信模板消息失败' => $e->getMessage(), '请求参数' => $data ?? '', '返回数据' => $result ?? ''], 'error');
|