修改用户信息返回

This commit is contained in:
luofei 2024-03-11 11:37:37 +08:00
parent 99f136d5b1
commit 3971af747a

View File

@ -395,6 +395,9 @@ class Auth extends BaseController
$data['mer_info']['type_code'] = $merType['type_code'];
$data['mer_info']['type_name'] = $merType['type_name'];
$data['mer_info']['setting_status'] = 0;
if (!empty($mer_arr['mer_avatar']) && !empty($mer_arr['mer_banner']) && !empty($mer_arr['mer_address']) && !empty($mer_arr['mer_info'])) {
$data['mer_info']['setting_status'] = 1;
}
}
$data['fan_num'] = app()->make(RelevanceRepository::class)->getUserFans($user->uid, 1, 1, 1);
$data['focus_num'] = app()->make(RelevanceRepository::class)->getUserFocus($user->uid, 1, 1, 1);