1
This commit is contained in:
parent
c439b408c4
commit
34d4b81ec6
@ -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 '劳力值',
|
||||||
|
@ -130,6 +130,10 @@ class Gun extends BaseModel {
|
|||||||
if ($row) {
|
if ($row) {
|
||||||
$cb($row);
|
$cb($row);
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
if ($row) {
|
||||||
|
$cb($row);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -123,6 +123,10 @@ class Hero extends BaseModel {
|
|||||||
if ($row) {
|
if ($row) {
|
||||||
$cb($row);
|
$cb($row);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if ($row) {
|
||||||
|
$cb($row);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -63,8 +63,11 @@ class UserSeasonRing extends BaseModel
|
|||||||
if ($row) {
|
if ($row) {
|
||||||
$cb($row);
|
$cb($row);
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
if ($row) {
|
||||||
|
$cb($row);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user