const existingDevice = await db.collection("game-card-device").where(
`card_id == ${card._id} && device_no == ${params.device_no}`
).get();
"_id": {
"description": "ID,系统自动生成",
"label": "ID"
},
"card_id": {
"bsonType": "string",
"description": "卡密ID,关联game-card-key._id",
"title": "卡密ID",
"foreignKey": "game-card-key._id",
"label": "卡密ID"
},
"card_no": {
"description": "卡密编号",
"bsonType": "string",
"pattern": "^[A-Za-z0-9\-]+$",
"maxLength": 32,
"label": "卡密编号"
},
"device_no": {
"bsonType": "string",
"description": "设备号",
"title": "设备号",
"label": "设备号"
},
1 个回复
DCloud_uniCloud_CRL
发一下requestId