From 3c00bfa053c1eaed7539d7faadb01a893e786f8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=B1=BC=E5=BC=80=E5=8F=91?= Date: Thu, 15 Aug 2024 16:22:13 +0800 Subject: [PATCH] 1 --- api/controllers/wxapp/licheb/Sign.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/controllers/wxapp/licheb/Sign.php b/api/controllers/wxapp/licheb/Sign.php index 54e350c8..fe993ccf 100644 --- a/api/controllers/wxapp/licheb/Sign.php +++ b/api/controllers/wxapp/licheb/Sign.php @@ -33,7 +33,7 @@ class Sign extends Wxapp $lng = $this->input_param('lng'); $biz = $this->biz_model->get(['id' => $this->get_biz_id()]); $distance = get_distance($lat, $lng, $biz['lat'], $biz['lng']); - if ($distance > 1000) { + if ($distance > 100000) { return ['msg' => '您未在门店有效范围', 'type' => 'fail', 'fail_img' => 'https://img.liche.cn/spacestation/failed.png?t=20240607']; // throw new Exception('您未在门店的有效范围之内', ERR_PARAMS_ERROR); } @@ -151,7 +151,7 @@ class Sign extends Wxapp $biz['lat'] && $sign_data['biz_lat'] = $biz['lat']; $biz['lng'] && $sign_data['biz_lng'] = $biz['lng']; $sign_data['distance'] = $distance; - if ($distance > 1000) { + if ($distance > 100000) { $sign_data['descrip'] = '不在门店范围'; $this->sign_model->add($sign_data); return ['type' => 'fail', 'msg' => '您未在门店有效范围'];