From a12ff7f1d667de8414c623d01915be6385b386cc Mon Sep 17 00:00:00 2001 From: lin fan Date: Thu, 7 Nov 2024 09:59:17 +0800 Subject: [PATCH] 1 --- api/controllers/wxapp/licheb/Sign.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/controllers/wxapp/licheb/Sign.php b/api/controllers/wxapp/licheb/Sign.php index 79fc6a42..5ddcacec 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 > 100000) { + if ($distance > 1000) { return ['msg' => '您未在门店有效范围', 'type' => 'fail', 'fail_img' => 'https://img.liche.cn/spacestation/failed.png?t=20240607']; // throw new Exception('您未在门店的有效范围之内', ERR_PARAMS_ERROR); } @@ -45,7 +45,7 @@ class Sign extends Wxapp "(province_id={$area['province_id']} or province_id=0)" => null ]; $item_row = $this->item_model->get($where); - $time_out = 3000; + $time_out = 1800; $item = []; if ($item_row) { $item['title'] = $item_row['title']; @@ -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 > 100000) { + if ($distance > 1000) { $sign_data['descrip'] = '不在门店范围'; $this->sign_model->add($sign_data); return ['type' => 'fail', 'msg' => '您未在门店有效范围'];