1.添加升级OTA
2.我的添加更换网络入口 3.调试SDK中的删除用户接口
This commit is contained in:
@@ -181,13 +181,13 @@ Component({
|
||||
let rawList = Array.isArray(deviceUserIds) ? deviceUserIds : [];
|
||||
// 兼容对象数组和纯ID数组,统一转为字符串比对
|
||||
let deviceIds = rawList.map(item => ({
|
||||
userID: item.userID,
|
||||
memberID: item.memberID
|
||||
id: item,
|
||||
memberID: ""
|
||||
}));
|
||||
let localIds = userList.map(user => user.id);
|
||||
|
||||
|
||||
// 秤有、列表没有 → 需要从秤删除
|
||||
let needDeleteList = deviceIds.filter(d => !localIds.includes(d.userID));
|
||||
let needDeleteList = deviceIds.filter(d => !localIds.includes(d.id));
|
||||
|
||||
// 秤没有、列表有 → 需要下发到秤
|
||||
let needSyncList = userList.filter(user => !deviceIds.some(d => d.userID == user.id));
|
||||
@@ -257,7 +257,7 @@ Component({
|
||||
wx.showLoading({ title: "正在删除第" + (delIndex + 1) + "/" + needDeleteList.length + "个多余用户...", mask: true });
|
||||
let item = needDeleteList[delIndex];
|
||||
app.globalData.ppScale.activeProtocol.dataDeleteUser({
|
||||
userID: item.userID,
|
||||
userID: item.id,
|
||||
memberID: ""
|
||||
}, (status) => {
|
||||
if (status == 0) {
|
||||
|
||||
Reference in New Issue
Block a user