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 });
try {
const payload = {
// memorialMac: this.deviceMac,
memorialMac: this.deviceMac,
nfcMac: this.cardNo,
};
// 使 memorialId使 unitId
const memorialId = this.memorialId || this.unitId;
if (memorialId) {
payload.memorialId = memorialId;
}
// const memorialId = this.memorialId || this.unitId;
// if (memorialId) {
// payload.memorialId = memorialId;
// }
const res = await bindNfcCard(payload);
const success = res && (res.code === 200 || res.status === 200);
const message = (res && res.msg) || "";