wesmiler 1 неделя назад
Родитель
Сommit
657fe5da79
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/Services/Api/BalanceLogService.php

+ 1 - 0
app/Services/Api/BalanceLogService.php

@@ -205,6 +205,7 @@ class BalanceLogService extends BaseService
         $field = isset($fields[$accountType])? $fields[$accountType]:'balance';
         RedisService::set($cacheLockKey, ['user_id' => $userId, 'params' => $params], rand(10, 20));
         $userInfo = MemberModel::where(['id' => $userId, 'mark' => 1])->select(['id', 'balance', 'status'])->first();
+        $realname = isset($userInfo['realname']) ? $userInfo['realname'] : '';
         $status = isset($userInfo['status']) ? $userInfo['status'] : 0;
         $balance = isset($userInfo[$field]) ? $userInfo[$field] : 0;
         if (empty($userInfo) || $status != 1) {