|
@@ -116,7 +116,7 @@ export class KycService extends BaseService {
|
|
|
const data = {
|
|
|
outUserId,
|
|
|
level: 1,
|
|
|
- levelEnd: 3,
|
|
|
+ levelEnd: 1,
|
|
|
customerId: '',
|
|
|
payUrl: ''
|
|
|
}
|
|
@@ -128,13 +128,13 @@ export class KycService extends BaseService {
|
|
|
if (kyc) {
|
|
|
data.level = +kyc.level + 1;
|
|
|
data.customerId = kyc.customerId
|
|
|
+ data.payUrl = await this.validAndGetPayUrl(orderNo, data);
|
|
|
}
|
|
|
- const daily = await this.getDailyLevel(order, order.currency);
|
|
|
- const weekly = await this.getWeekLyLevel(order, order.currency);
|
|
|
- const monthly = await this.getMonthlyLevel(order, order.currency);
|
|
|
- data.levelEnd = Math.max(daily, weekly, monthly);
|
|
|
- console.log('---------', daily, weekly, monthly, data.level, data.levelEnd, data.customerId)
|
|
|
- data.payUrl = await this.validAndGetPayUrl(orderNo, data);
|
|
|
+ // const daily = await this.getDailyLevel(order, order.currency);
|
|
|
+ // const weekly = await this.getWeekLyLevel(order, order.currency);
|
|
|
+ // const monthly = await this.getMonthlyLevel(order, order.currency);
|
|
|
+ // data.levelEnd = Math.max(daily, weekly, monthly);
|
|
|
+ // console.log('---------', daily, weekly, monthly, data.level, data.levelEnd, data.customerId)
|
|
|
return data;
|
|
|
}
|
|
|
|