|
@@ -31,7 +31,8 @@ Page({
|
|
|
let wifiDic = store.getStore("wifiInfo")
|
|
|
let wifiName = wifiDic.wifiName
|
|
|
let pwd = wifiDic.wifiPassword
|
|
|
- if (wifiName && pwd) {
|
|
|
+ // if (wifiName && pwd) {
|
|
|
+ if (wifiName) {
|
|
|
console.log("获取Wi-Fi信息", wifiName, pwd);
|
|
|
that.setData({
|
|
|
wifiName: wifiName,
|
|
@@ -109,9 +110,10 @@ Page({
|
|
|
sendWiFiInfo(wifiName, pwd) {
|
|
|
// [0x22, (wifiList.length + pwdList.length + 6), 0x33, (wifiList.length), (wifiList), 0x44, (pwdList)];
|
|
|
|
|
|
- if (!wifiName || !pwd) {
|
|
|
+ if (!wifiName) {
|
|
|
+ // if (!wifiName || pwd) {
|
|
|
wx.showToast({
|
|
|
- title: '请输入正确的账号密码',
|
|
|
+ title: '请输入正确的账号',
|
|
|
})
|
|
|
wx.hideLoading()
|
|
|
return;
|