Преглед изворни кода

信用卡渠道暂不判断KYC金额

test пре 5 месеци
родитељ
комит
d8952627da
1 измењених фајлова са 7 додато и 7 уклоњено
  1. 7 7
      src/modules/dj/service/kyc.ts

+ 7 - 7
src/modules/dj/service/kyc.ts

@@ -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;
   }