Преглед на файлове

fix: 用户登录之后没有相关头像

max преди 7 месеца
родител
ревизия
093626ece4
променени са 1 файла, в които са добавени 14 реда и са изтрити 14 реда
  1. 14 14
      src/modules/base/service/sys/user.ts

+ 14 - 14
src/modules/base/service/sys/user.ts

@@ -121,19 +121,19 @@ export class BaseSysUserService extends BaseService {
     });
 
     // 如果需要获取关联信息,可以分别查询
-    let individualInfo = null;
-    let businessInfo = null;
+    // let individualInfo = null;
+    // let businessInfo = null;
 
-    if (merchant) {
-      // 分别查询个人或企业信息
-      individualInfo = await this.individualEntity.findOneBy({
-        merchantId: merchant.mchId
-      });
-
-      businessInfo = await this.businessEntity.findOneBy({
-        merchantId: merchant.mchId
-      });
-    }
+    // if (merchant) {
+    //   // 分别查询个人或企业信息
+    //   individualInfo = await this.individualEntity.findOneBy({
+    //     merchantId: merchant.mchId
+    //   });
+    //
+    //   businessInfo = await this.businessEntity.findOneBy({
+    //     merchantId: merchant.mchId
+    //   });
+    // }
 
     delete info?.password;
     return {
@@ -141,8 +141,8 @@ export class BaseSysUserService extends BaseService {
       merchant: merchant
         ? {
             ...merchant,
-            individual: individualInfo,
-            business: businessInfo,
+            // individual: individualInfo,
+            // business: businessInfo,
           }
         : null,
     };