|
|
|
@ -61,6 +61,10 @@ class Dealer extends Controller |
|
|
|
|
*/ |
|
|
|
|
public function center(): Json |
|
|
|
|
{ |
|
|
|
|
$dealer = $this->dealer->toArray(); |
|
|
|
|
|
|
|
|
|
$dealer['update_time'] = date("Y-m-d", strtotime($dealer['update_time'])); |
|
|
|
|
|
|
|
|
|
// 获取用户头像 |
|
|
|
|
$this->user = UserModel::related($this->user, ['avatar']); |
|
|
|
|
return $this->renderSuccess([ |
|
|
|
@ -69,7 +73,7 @@ class Dealer extends Controller |
|
|
|
|
// 当前用户信息 |
|
|
|
|
'user' => $this->user, |
|
|
|
|
// 分销商用户信息 |
|
|
|
|
'dealer' => $this->dealer, |
|
|
|
|
'dealer' => $dealer, |
|
|
|
|
// 推荐人昵称 |
|
|
|
|
'refereeName' => DealerUserModel::getRefereeName(), |
|
|
|
|
// 分销设置 |
|
|
|
|