1
This commit is contained in:
parent
794a46b0b3
commit
2b5f0b9811
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user