第一次更新,完成了初版调整

This commit is contained in:
2026-09-07 22:05:51 +08:00
parent b5a26a8848
commit 4d6a7e7aac
198 changed files with 6142 additions and 3856 deletions
@@ -32,9 +32,6 @@ class Controller extends BaseController
{
// 当前商城ID
protected $storeId;
protected $latitude;
protected $longitude;
protected $province;
/**
* API基类初始化
@@ -44,12 +41,6 @@ class Controller extends BaseController
{
// 当前商城id
$this->storeId = $this->getStoreId();
$this->latitude = input('get.latitude');
$this->longitude = input('get.longitude');
$res = $this->httpCurl('https://apis.map.qq.com/ws/geocoder/v1/',['location'=>$this->latitude.','.$this->longitude,'key'=>'ETFBZ-F4XCW-YOQRI-RWBQM-BAZIQ-2VFS5']);
if(isset($res['status']) && $res['status'] == 0){
$this->province = $res['result']['address_component']['province'];
}
// 验证当前商城状态
$this->checkStore();
// 验证当前客户端状态