nfc牌位接口绑定修改

This commit is contained in:
WindowBird 2025-11-25 11:51:29 +08:00
parent 4adf0b0684
commit 5b818deed5

View File

@ -645,14 +645,14 @@ export default {
uni.showLoading({ title: "提交中...", mask: true }); uni.showLoading({ title: "提交中...", mask: true });
try { try {
const payload = { const payload = {
// memorialMac: this.deviceMac, memorialMac: this.deviceMac,
nfcMac: this.cardNo, nfcMac: this.cardNo,
}; };
// 使 memorialId使 unitId // 使 memorialId使 unitId
const memorialId = this.memorialId || this.unitId; // const memorialId = this.memorialId || this.unitId;
if (memorialId) { // if (memorialId) {
payload.memorialId = memorialId; // payload.memorialId = memorialId;
} // }
const res = await bindNfcCard(payload); const res = await bindNfcCard(payload);
const success = res && (res.code === 200 || res.status === 200); const success = res && (res.code === 200 || res.status === 200);
const message = (res && res.msg) || ""; const message = (res && res.msg) || "";