修改排位结算
This commit is contained in:
parent
f28a7b8d5e
commit
85ccecd345
@ -23,7 +23,7 @@ class RankingSetRecord
|
||||
}
|
||||
|
||||
public static function toDto($row){
|
||||
return array(
|
||||
$data = array(
|
||||
'state' => $row['state'],
|
||||
'last_rank' => $row['last_rank'],
|
||||
'current_rank' => $row['current_rank'],
|
||||
@ -31,6 +31,21 @@ class RankingSetRecord
|
||||
'current_score' => $row['current_score'],
|
||||
'awards' => json_decode($row['awards']),
|
||||
);
|
||||
self::updateState();
|
||||
return $data;
|
||||
}
|
||||
|
||||
public static function updateState(){
|
||||
SqlHelper::update
|
||||
(myself()->_getSelfMysql(),
|
||||
't_ranking_settlement_record',
|
||||
array(
|
||||
'account_id' => myself()->_getAccountId(),
|
||||
),
|
||||
array(
|
||||
'state' => 0,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public static function upsert($fieldKv){
|
||||
|
Loading…
x
Reference in New Issue
Block a user