wesmiler 2 tahun lalu
induk
melakukan
afa56089e3
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      app/Services/Api/MemberService.php

+ 3 - 0
app/Services/Api/MemberService.php

@@ -95,6 +95,9 @@ class MemberService extends BaseService
         $info = $info ? $info->toArray() : [];
         if ($info && !in_array($type, ['auth', 'check','login'])) {
             $info['avatar'] = $info['avatar'] ? get_image_url($info['avatar']) : get_image_url('/images/member/logo.png');
+            $info['balance'] = moneyFormat($info['balance'], 2);
+            $info['usdt'] = moneyFormat($info['usdt'], 2);
+            $info['score'] = moneyFormat($info['score'], 2);
 
             // 二维码
             if (in_array($type, ['detail'])) {