fix
This commit is contained in:
parent
4af2775cd8
commit
67334fe5ee
@ -370,12 +370,14 @@ class ShopController{
|
||||
$coin_num = $addreward->getCoinNum($account_id);
|
||||
$diamond_num = $addreward->getDiamondNum($account_id);
|
||||
$adfree = $addreward->getAdfree($account_id);
|
||||
$medals = $addreward->getMedals($account_id);
|
||||
echo json_encode(array(
|
||||
'errcode' => 0,
|
||||
'errmsg'=> '',
|
||||
'coin_nums' => $coin_num,
|
||||
'diamond_nums' => $diamond_num,
|
||||
'adfree' => $adfree,
|
||||
'medals' => $medals,
|
||||
'item_list' => $item_list,
|
||||
'all_item_list' => $all_item_list,
|
||||
'id' => $id,
|
||||
|
@ -148,6 +148,9 @@ class SoloController
|
||||
$addmedals = intval(($nowtime - $solorow['lastredeem']) / $medalsecs);
|
||||
$lastredeem = $solorow['lastredeem'] + $addmedals * $medalsecs;
|
||||
$medals = $addmedals + $solorow['medals'];
|
||||
if ($medals > $medalsgrowlimit) {
|
||||
$medals = $medalsgrowlimit;
|
||||
}
|
||||
$updatedb = true;
|
||||
} else {
|
||||
$medals = $solorow['medals'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user