12 2021 档案
摘要:已知: 用户经纬度:$lat,$lon 数据库经纬度字段:d_lat,d_lon 工具函数 //注意替换数据库经纬度字段值//入参为用户经纬度,as_name为距离字段别名 public function get_distance_sql($lat, $lng, $as_name = 'distan
阅读全文
摘要:开启转发 wx.showShareMenu({ withShareTicket: true, //shareAppMessage 发送朋友 shareTimeline发送朋友圈 menus: ['shareAppMessage', 'shareTimeline'] }) 自定义转发内容 onShar
阅读全文
摘要:const accountInfo = wx.getAccountInfoSync(); console.log(accountInfo) switch (accountInfo.miniProgram.envVersion) { case 'develop': console.log('开发版')
阅读全文
摘要:一维数组 array_unique() 二维数组 $uniqueList = [];foreach($List as $k => $v) { if (!isset($uniqueList[$v['_id']])) { $uniqueList[$v['_id']] = $v; }}$uniqueLis
阅读全文