This commit is contained in:
hujiabin 2022-11-01 16:28:32 +08:00
parent c439b408c4
commit 34d4b81ec6
5 changed files with 24 additions and 2 deletions

View File

@ -267,6 +267,7 @@ CREATE TABLE `t_chip` (
`lucky_final` varchar(10) NOT NULL DEFAULT '0' COMMENT '最终幸运值', `lucky_final` varchar(10) NOT NULL DEFAULT '0' COMMENT '最终幸运值',
`strength_max` varchar(10) NOT NULL DEFAULT '0' COMMENT '最大体力值', `strength_max` varchar(10) NOT NULL DEFAULT '0' COMMENT '最大体力值',
`strength` varchar(10) NOT NULL DEFAULT '0' COMMENT '前一天体力值', `strength` varchar(10) NOT NULL DEFAULT '0' COMMENT '前一天体力值',
`upgrade_mint` double NOT NULL DEFAULT '0' COMMENT 'mint费用',
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
`labour` int(11) NOT NULL DEFAULT '0' COMMENT '劳力值', `labour` int(11) NOT NULL DEFAULT '0' COMMENT '劳力值',

View File

@ -130,6 +130,10 @@ class Gun extends BaseModel {
if ($row) { if ($row) {
$cb($row); $cb($row);
} }
}else{
if ($row) {
$cb($row);
}
} }
} }
} }

View File

@ -123,6 +123,10 @@ class Hero extends BaseModel {
if ($row) { if ($row) {
$cb($row); $cb($row);
} }
} else {
if ($row) {
$cb($row);
}
} }
} }
} }

View File

@ -211,6 +211,16 @@ class User extends BaseModel {
} }
public static function getUserByRankMess($row){ public static function getUserByRankMess($row){
$currSeasonMeta = mt\RankSeason::getCurrentSeason();
$gameTimes = 0;
if ($currSeasonMeta){
$season = Season::find($currSeasonMeta['id']);
if ($season){
$battleData = json_decode($season['battle_data'], true);
$seasonBattleData = isset($battleData) ? getXVal($battleData, 'season_data', array()) : array();
$gameTimes = getXVal($seasonBattleData, 'total_battle_times', 0);
}
}
$toDto =array( $toDto =array(
'idx' => $row['idx'], 'idx' => $row['idx'],
'account_id' => $row['account_id'], 'account_id' => $row['account_id'],
@ -223,7 +233,7 @@ class User extends BaseModel {
'score' => $row['score'], 'score' => $row['score'],
'history_best_score' => $row['history_best_score'], 'history_best_score' => $row['history_best_score'],
//排位场数 //排位场数
'rank_num' => 0, 'rank_num' => $gameTimes,
); );
return $toDto; return $toDto;
} }

View File

@ -63,8 +63,11 @@ class UserSeasonRing extends BaseModel
if ($row) { if ($row) {
$cb($row); $cb($row);
} }
}else{
if ($row) {
$cb($row);
}
} }
} }
} }