wang hou sheng 7 months ago
parent 109360fb08
commit d3c50e69f8
  1. 4
      app/api/controller/User.php

@ -13,6 +13,7 @@ declare (strict_types=1);
namespace app\api\controller; namespace app\api\controller;
use app\api\model\Agreement as AgreementModel; use app\api\model\Agreement as AgreementModel;
use app\api\model\dealer\User as DealerUserModel;
use app\api\model\Invite\InviteLog; use app\api\model\Invite\InviteLog;
use app\api\model\User as UserModel; use app\api\model\User as UserModel;
use app\api\model\user\BalanceLog; use app\api\model\user\BalanceLog;
@ -70,7 +71,8 @@ class User extends Controller
->whereIn('scene', [10, 30, 40, 60]) ->whereIn('scene', [10, 30, 40, 60])
->where('money', '>', 0) ->where('money', '>', 0)
->sum('money') ?? 0; ->sum('money') ?? 0;
//分销用户信息
$userInfo['dealer_info'] = DealerUserModel::detail($userInfo->user_id, []);
return $this->renderSuccess(compact('userInfo')); return $this->renderSuccess(compact('userInfo'));
} }

Loading…
Cancel
Save