wesmiler 2 недель назад
Родитель
Сommit
1d1f1c9d27
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      app/Services/Api/MemberService.php
  2. 1 1
      app/Services/Common/MemberLevelService.php

+ 2 - 2
app/Services/Api/MemberService.php

@@ -397,9 +397,9 @@ class MemberService extends BaseService
         $defaultField = ['id', 'user_type', 'realname', 'mobile','is_auth','member_level','idcard', 'nickname','parent_id','point_id', 'balance','ls_score','bd_score','property','property_total','withdraw_property','bonus_total','withdraw_total', 'code', 'openid','create_time', 'status', 'avatar'];
         $field = $field ? $field : $defaultField;
         if (is_array($where)) {
-            $info = $this->model->with(['parent','point'])->where(['mark' => 1])->where($where)->select($field)->first();
+            $info = $this->model->with(['parent','point','levelData'])->where(['mark' => 1])->where($where)->select($field)->first();
         } else {
-            $info = $this->model->with(['parent','point'])->where(['mark' => 1])->where(['id' => (int)$where])->select($field)->first();
+            $info = $this->model->with(['parent','point','levelData'])->where(['mark' => 1])->where(['id' => (int)$where])->select($field)->first();
         }
 
         $info = $info ? $info->toArray() : [];

+ 1 - 1
app/Services/Common/MemberLevelService.php

@@ -37,7 +37,7 @@ class MemberLevelService extends BaseService
     {
         $this->model = new MemberLevelModel();
     }
-    
+
     /**
      * 静态入口
      */