targetAddress
This commit is contained in:
@@ -59,7 +59,7 @@ function createGroupRewardAction(data = {}) {
|
|||||||
|
|
||||||
function createWithdrawAction(data = {}) {
|
function createWithdrawAction(data = {}) {
|
||||||
// 体现 vic or usdt
|
// 体现 vic or usdt
|
||||||
const { userId, amount, remain, tokenType } = data;
|
const { userId, amount, remain, tokenType, detail } = data;
|
||||||
return new Action({
|
return new Action({
|
||||||
userId,
|
userId,
|
||||||
type: 3,
|
type: 3,
|
||||||
@@ -67,7 +67,7 @@ function createWithdrawAction(data = {}) {
|
|||||||
amount,
|
amount,
|
||||||
remain,
|
remain,
|
||||||
tokenType,
|
tokenType,
|
||||||
detail: {}
|
detail
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ const name2type = {
|
|||||||
function createTicket (name, data) {
|
function createTicket (name, data) {
|
||||||
const type = name2type[name];
|
const type = name2type[name];
|
||||||
const status = 'created';
|
const status = 'created';
|
||||||
const { userId, handler, action, coinId, option } = data;
|
const { userId, handler, action, coinId, option, targetAddress } = data;
|
||||||
return new Ticket({
|
return new Ticket({
|
||||||
status, type, userId, handler, action, option, coinId
|
status, type, userId, handler, action, option, coinId, targetAddress
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ const TicketSchema = new mongoose.Schema({
|
|||||||
type: Number
|
type: Number
|
||||||
},
|
},
|
||||||
targetAddress: {
|
targetAddress: {
|
||||||
type: String
|
type: String,
|
||||||
|
default: ''
|
||||||
},
|
},
|
||||||
status: {
|
status: {
|
||||||
type: String
|
type: String
|
||||||
|
|||||||
Reference in New Issue
Block a user