ソースを参照

fix: 回调修改

max 7 ヶ月 前
コミット
26e0af50df
1 ファイル変更3 行追加3 行削除
  1. 3 3
      src/modules/payment/service/customer.ts

+ 3 - 3
src/modules/payment/service/customer.ts

@@ -46,7 +46,7 @@ export class CustomerService extends BaseService {
         customer_id: data.customer_id,
       },
     });
-    const isWhiteLabel = customer?.out_user_id.length > 0;
+    const isWhiteLabel = customer?.out_user_id?.length > 0;
     if (!customer) {
       return {
         is_success: false,
@@ -67,9 +67,9 @@ export class CustomerService extends BaseService {
         message: '成功',
       };
     }
-    
+
     const status = biz_status === 'FAIL' ? -1 : 1;
-    customer.status = biz_status;    
+    customer.status = biz_status;
     // 平台用户
     const business = await this.businessEntity.findOne({
       where: {