更新
This commit is contained in:
parent
82f60425d5
commit
55dffa0999
@ -35,11 +35,10 @@ class UserLogic extends BaseLogic
|
|||||||
/**
|
/**
|
||||||
* @notes 用户详情
|
* @notes 用户详情
|
||||||
* @param int $userId
|
* @param int $userId
|
||||||
* @return array
|
|
||||||
* @author 段誉
|
* @author 段誉
|
||||||
* @date 2022/9/22 16:32
|
* @date 2022/9/22 16:32
|
||||||
*/
|
*/
|
||||||
public static function detail(int $userId): array
|
public static function detail(int $userId)
|
||||||
{
|
{
|
||||||
// $field = [
|
// $field = [
|
||||||
// 'id', 'sn', 'account', 'nickname', 'avatar', 'real_name',
|
// 'id', 'sn', 'account', 'nickname', 'avatar', 'real_name',
|
||||||
@ -54,7 +53,7 @@ class UserLogic extends BaseLogic
|
|||||||
// $user->sex = $user->getData('sex');
|
// $user->sex = $user->getData('sex');
|
||||||
$user['qualification'] = json_decode($user->qualification, true);
|
$user['qualification'] = json_decode($user->qualification, true);
|
||||||
// if ($user->is_contract == 1) {
|
// if ($user->is_contract == 1) {
|
||||||
$user['contract'] = Contract::where(['type' => 2, 'party_b' => $userId])->with(['partyAInfo', 'contractType'])->find();
|
$user['contract'] = Contract::where(['type' => 2, 'party_b' => $userId])->with(['party_a_info', 'contractType'])->find();
|
||||||
// }
|
// }
|
||||||
return $user->toArray();
|
return $user->toArray();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user