This commit is contained in:
aozhiwei 2022-02-15 17:31:41 +08:00
parent 2a7ab235d4
commit c43e99268a

View File

@ -44,6 +44,13 @@ class BoxOrder {
async payment() {
const logClass = 'payment';
if (!this.isPaid()) {
const getPrepareBlockNumber = () => {
return this.orderDb['bc_pay_prepare_block_number'];
};
const getSuccessBlockNumber = () => {
return this.orderDb['bc_pay_success_block_number'];
};
const eventFilter = {
boxId: this.getOrderId()
};
@ -60,9 +67,6 @@ class BoxOrder {
this.orderDb['bc_pay_result'] = 1;
this.orderDb['bc_pay_success_block_number'] = blockNumber;
};
const getPrepareBlockNumber = () => {
return this.orderDb['bc_pay_prepare_block_number'];
};
const methodArgs = [
this.orderDb['order_id'],
this.orderDb['type'],
@ -86,9 +90,6 @@ class BoxOrder {
this.orderDb['bc_block_number'] = 0;
this.orderDb['bc_sync_block_number'] = 0;
};
const getSuccessBlockNumber = () => {
return this.orderDb['bc_block_number'];
};
const syncGetSyncCount = () => {
return this.orderDb['bc_pay_count'];
};