精武世家

@51qj

我行我自信 爱拼才会赢

Java
Python
SQL
北京市/丰台区
30890844
mtc_cn

贡献度

周一
周四
周日
四月
五月
六月
七月
八月
九月
十月
十一月
十二月
一月
二月
三月

最近一年贡献:6 次

最长连续贡献:1 日

最近连续贡献:1 日

贡献度的统计数据包括代码提交、创建任务 / Pull Request、合并 Pull Request,其中代码提交的次数需本地配置的 git 邮箱是 Gitee 帐号已确认绑定的才会被统计。

动态 (访客只能浏览公开仓库的动态)

2025-02-24
加入了 董旭/ry
2025-02-22
2024年
2024-12-12
2024年
2024-11-15

第一步,替换成官方演示版里的qq_map.js文件,位置public/static/js/qq_map.js
第二步,在app\shop\controller\Address.php里增加locationToDetail和addressToDetail两个方法

展开更多 收起
2024年
2024-10-10

需要Address.php 增加以下方法

public function locationToDetail(){
        $location = request()->post('location', '');
        $config_model = new ConfigModel();
        $mp_config = $config_model->getMapConfig(request()->siteid());
        $tencent_map_key = $mp_config['data']['value']['tencent_map_key'];

        $url = 'https://apis.map.qq.com/ws/geocoder/v1/?location='.$location.'&key='.$tencent_map_key;

        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, $url);
        curl_setopt($curl, CURLOPT_HEADER, 0);
        curl_setopt($curl, CURLOPT_TIMEOUT, 1);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
        $data = curl_exec($curl);

        return json_decode($data, true);
    }

    public function addressToDetail(){
        $address = request()->post('address', '');
        $address = str_replace(',' , '', $address);
        $config_model = new ConfigModel();
        $mp_config = $config_model->getMapConfig(request()->siteid());
        $tencent_map_key = $mp_config['data']['value']['tencent_map_key'];

        $url = 'https://apis.map.qq.com/ws/geocoder/v1/?address=='.$address.'&key='.$tencent_map_key;

        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, $url);
        curl_setopt($curl, CURLOPT_HEADER, 0);
        curl_setopt($curl, CURLOPT_TIMEOUT, 1);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
        $data = curl_exec($curl);

        return json_decode($data, true);
    }
展开更多 收起
2024年
2024-05-11
2024年
2024-03-31
2023年
2023-08-16

通过物理数据库添加新表后,mycat就无法识别到新表,重启mycat后才能正常

展开更多 收起
2023年
2023-06-25
2023年
2023-05-17

建议增加数字孪生相关的功能

展开更多 收起
2022年
2022-11-23

嗯 想试试与社区政务同步,目前改成微服务方式就正常了

展开更多 收起

kafka的消费者注册不到kafka

展开更多 收起
2022-11-22
2022-11-17

搜索帮助