This commit is contained in:
aozhiwei 2024-07-19 14:30:25 +08:00
parent 794a46b0b3
commit 2b5f0b9811

View File

@ -565,6 +565,31 @@ class BaseEventProcess {
}
}
async adjustQuality(tokenId, quality) {
const logHead = ' adjustQuality ';
if (!tokenId) {
return;
}
if (!quality) {
return;
}
const {err} = await this.bcNftDbConn(
'update',
't_nft',
[
['net_id', this.getNetId()],
['contract_address', this.getContractAddress()],
['token_id', tokenId],
],
[
['quality', quality],
]
);
if (err) {
this.throwError(logHead + err);
}
}
async addLog(fieldsKv) {
const {err} = await this.bcEventDbConn(
'insert',