This commit is contained in:
hujiabin 2022-10-27 13:49:05 +08:00
parent fe0f45df9a
commit c2d1bf9ae2
2 changed files with 12 additions and 8 deletions

View File

@ -146,8 +146,9 @@ class UserInfo(object):
['!hero_list', [0], '拥有的立绘背景列表'], ['!hero_list', [0], '拥有的立绘背景列表'],
['!head_frame_list', [0], '拥有的头像框列表'], ['!head_frame_list', [0], '拥有的头像框列表'],
['is_gain_item', 0, '0 为获取1 以获取'], ['is_gain_item', 0, '0 为获取1 以获取'],
['labor_id', 0, '工会id'], ['guild_id', '', '工会id'],
['labor_name', '', '工会名称'], ['guild_job', 0, '工会职位'],
['guild_name', '', '工会名称'],
] ]
class UserSimple(object): class UserSimple(object):
@ -199,8 +200,9 @@ class UserDetailInfo(object):
['current_rank_score', 0, '当前赛季排位分'], ['current_rank_score', 0, '当前赛季排位分'],
['history_best_rank_score', 0, '历史最高赛季排位分'], ['history_best_rank_score', 0, '历史最高赛季排位分'],
['like_count', 0, '点赞次数'], ['like_count', 0, '点赞次数'],
['labor_id', 0, '工会id'], ['guild_id', '', '工会id'],
['labor_name', '', '工会名称'], ['guild_job', 0, '工会职位'],
['guild_name', '', '工会名称'],
['!history_seasons', [UserHisSeason()], '历史打过的赛季列表'], ['!history_seasons', [UserHisSeason()], '历史打过的赛季列表'],
] ]

View File

@ -52,8 +52,9 @@ class User extends BaseModel {
'hero_list' => self::exportHeadList($row)['hero_list'], 'hero_list' => self::exportHeadList($row)['hero_list'],
'head_frame_list' => emptyReplace(json_decode($row['head_frame_list'], true), array()), 'head_frame_list' => emptyReplace(json_decode($row['head_frame_list'], true), array()),
'is_gain_item' => $row['is_gain_item'], 'is_gain_item' => $row['is_gain_item'],
'labor_id' => $row['labor_id'], 'guild_id' => $row['guild_id'],
'labor_name' => $row['labor_name'], 'guild_job' => $row['guild_job'],
'guild_name' => $row['guild_name'],
); );
} }
@ -88,8 +89,9 @@ class User extends BaseModel {
'head_frame_list' => emptyReplace(json_decode($row['head_frame_list'], true), array()), 'head_frame_list' => emptyReplace(json_decode($row['head_frame_list'], true), array()),
'is_gain_item' => $row['is_gain_item'], 'is_gain_item' => $row['is_gain_item'],
'is_leader' => 0, 'is_leader' => 0,
'labor_id' => $row['labor_id'], 'guild_id' => $row['guild_id'],
'labor_name' => $row['labor_name'], 'guild_job' => $row['guild_job'],
'guild_name' => $row['guild_name'],
); );
} }