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