Explorar o código

wesmiler 报恩寺项目

wesmiler %!s(int64=4) %!d(string=hai) anos
pai
achega
4644361918
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      app/Services/MemberService.php

+ 10 - 0
app/Services/MemberService.php

@@ -85,9 +85,19 @@ class MemberService extends BaseService
             ->first();
          $info? $info->toArray() : [];
 
+
          if(isset($info['avatar'])){
              $info['avatar'] = $info['avatar']? get_image_url($info['avatar']) : '';
          }
+         if(isset($info['master_type'])){
+             $info['master_type'] = intval($info['master_type']);
+         }
+        if(isset($info['master_status'])){
+            $info['master_status'] = intval($info['master_status']);
+        }
+        if(isset($info['master_name'])){
+            $info['master_name'] = empty($info['master_name'])? '' : $info['master_name'];
+        }
          return $info;
     }
 }