[AI Generated]: fix(*): 更新乐福域名配置至207、修复配网日志及优化设备扫描隐藏逻辑
This commit is contained in:
@@ -20,8 +20,8 @@ const plugin = requirePlugin('ppScale-plugin') as LeFuPlugin
|
||||
const LEFU_CONFIG: LeFuConfig = {
|
||||
key: 'lefudc91611833e18d94',
|
||||
secret: 'eQ50JYimMp0X7uhNLj6D3lTEk4TUUvEG7dvaqKM9t1U=',
|
||||
domain1: 'http://192.168.1.31:8889',
|
||||
domain2: 'http://192.168.1.31:8889/weight',
|
||||
domain1: 'http://192.168.1.207:8889',
|
||||
domain2: 'http://192.168.1.207:8889/weight',
|
||||
// domain1: 'http://device.shuziweidao.com:80/gateway',
|
||||
// domain2: 'http://device.shuziweidao.com:80/weight',
|
||||
}
|
||||
@@ -249,6 +249,7 @@ class LeFuService {
|
||||
configWifi(ssid: string, password: string): Promise<void> {
|
||||
const version = (this._deviceInfo?.modelNumber ?? '').split('-').length === 5 ? 'domain2' : 'domain1'
|
||||
console.log(TAG, 'configWifi():', ssid, version)
|
||||
console.log(TAG, 'configNetWork():',this._deviceInfo?.modelNumber, version)
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!this._activeProtocol) {
|
||||
reject(new Error('[LeFu] 设备未连接,无法配网'))
|
||||
|
||||
@@ -29,8 +29,8 @@ Page({
|
||||
|
||||
onHide() {
|
||||
console.log(TAG, 'onHide, 停止扫描')
|
||||
_rawDevices = []
|
||||
this.setData({ status: 'idle', deviceList: [] })
|
||||
// _rawDevices = []
|
||||
// this.setData({ status: 'idle', deviceList: [] })
|
||||
lefuService.stopScan()
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user