jncinet/qihucms-lbs

qihucms lbs service.

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/jncinet/qihucms-lbs

1.0.2 2021-03-25 08:51 UTC

This package is auto-updated.

Last update: 2025-09-25 18:49:12 UTC


README

安装

composer require jncinet/qihucms-lbs

后台

地图设置:lbs/config

示例

// ip定位
// 路径
route('api.lbs.ip') = 'lbs/ip?ip=IP地址(可选)'

// GPS定位
// 路径
route('api.lbs.gps') = 'lbs/gps?lat=1&lng=2'

// 返回值
"data": [
    'status' => 0,
    'message' => '局域网IP',
        'result' => [
            'ip' => '127.0.0.1',
            'location' => [
                'lng' => 0,
                'lat' => 0
            ],
            'ad_info' => [
                'nation' => '中国',
                'province' => '本地',
                'city' => '局域网',
                'district' => '',
                'adcode' => -1
            ]
        ]
    ]
]