位置授权,请求基地址修改,设备前缀匹配

This commit is contained in:
WindowBird 2025-09-03 11:44:31 +08:00
parent faba9d5187
commit 5e49c058cd
3 changed files with 8 additions and 2 deletions

View File

@ -2,6 +2,12 @@
export default { export default {
onLaunch: function () { onLaunch: function () {
console.log('App Launch') console.log('App Launch')
uni.authorize({
scope: 'scope.userLocation',
success: function () {
console.log('用户同意了授权')
},
})
}, },
onShow: function () { onShow: function () {
console.log('App Show') console.log('App Show')

View File

@ -1255,7 +1255,7 @@ function init() {
// && devices.devices[0].name != 'SMART_R2XS' // && devices.devices[0].name != 'SMART_R2XS'
// && devices.devices[0].name != 'SMART_R2XS' // && devices.devices[0].name != 'SMART_R2XS'
// ) // )
if (devices.devices[0].name.indexOf('BBLE') != -1) { if (devices.devices[0].name.indexOf('CTKG') != -1) {
// if ( devices.devices[0].name.indexOf("gjkg") != -1 ){ // if ( devices.devices[0].name.indexOf("gjkg") != -1 ){
// console.log("跳过",devices.devices[0].name) // console.log("跳过",devices.devices[0].name)
// isnotexist = false; // isnotexist = false;

View File

@ -19,7 +19,7 @@ const ENV_CONFIG = {
develop: { develop: {
// 开发环境 // 开发环境
// baseUrl: 'http://192.168.2.13:4601', // baseUrl: 'http://192.168.2.13:4601',
baseUrl: 'http://192.168.2.13:4601', baseUrl: 'https://chu.chuangtewl.com/prod-api',
appId: 1, appId: 1,
}, },
trial: { trial: {