Przeglądaj źródła

change: 修改用户的身份认证

max 7 miesięcy temu
rodzic
commit
67d279c22a

+ 0 - 1
src/modules/payment/service/business.ts

@@ -103,7 +103,6 @@ export class BusinessService extends BaseService {
       query = `
         SELECT *
         FROM business
-        WHERE business.merchantId = '${merchantId}'
         ORDER BY business.merchantId ASC
       `;
     } else {

+ 1 - 0
src/modules/payment/service/customer.ts

@@ -31,6 +31,7 @@ export class CustomerService extends BaseService {
    * 描述
    */
   async webhook(params: any) {
+    console.log('sunpay 回调', params);
     const { biz_status, biz_type, data, msg } = params;
     // 只处理创建客户的事件
     if (biz_type !== 'CREATECUSTOMER') {

+ 6 - 3
src/modules/payment/service/individual.ts

@@ -46,8 +46,6 @@ export class IndividualService extends BaseService {
     if (!params?.registration_date) {
       params.registration_date = this.utils.getNewTime()
     }
-    console.log(49, merchantId);
-    return merchantId
     const custom = {
       ...params,
       out_user_id: merchantId,
@@ -94,10 +92,15 @@ export class IndividualService extends BaseService {
     const queryParams: any[] = [];
     if (roleIds.filter(id => [1, 3].includes(id)).length) {
       // 角色为 1 或 3 时,仅查询 individual 表
+      // query = `
+      //   SELECT *
+      //   FROM individual
+      //   WHERE individual.merchantId = '${merchantId}'
+      //   ORDER BY individual.merchantId ASC
+      // `;
       query = `
         SELECT *
         FROM individual
-        WHERE individual.merchantId = '${merchantId}'
         ORDER BY individual.merchantId ASC
       `;
     } else {