nfc牌位接口绑定修改
This commit is contained in:
parent
4adf0b0684
commit
5b818deed5
|
|
@ -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) || "";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user