1
This commit is contained in:
parent
f1a6cd536d
commit
b36fabac19
@ -151,12 +151,9 @@ class HangController{
|
||||
$g_conf_reward_cluster = require('../res/rewardTimes@rewardTimes.php');
|
||||
$times = 1;
|
||||
$reward_conf = array();
|
||||
for ($i = 0; $i <= count($g_conf_reward_cluster); $i++) {
|
||||
$reward_id = $g_conf_reward_cluster[$i + 91000]['id'];
|
||||
for ($i = 0; $i < 4; $i++) {
|
||||
$reward_id = $i + 91000;
|
||||
$reward_conf = getRewardTimesConfig($g_conf_reward_cluster, $reward_id);
|
||||
if ($reward_conf['typeId'] != 1) {
|
||||
continue;
|
||||
}
|
||||
if ((int)$coin_num >= $reward_conf['minGold'] && (int)$coin_num <= $reward_conf['maxGold']) {
|
||||
$times = $reward_conf['times'];
|
||||
break;
|
||||
|
@ -419,7 +419,7 @@ class RoleController{
|
||||
return;
|
||||
}
|
||||
$coin_num = $row['coin'];
|
||||
$times = $this->getRewardTimes($num);
|
||||
$times = $this->getRewardTimes($coin_num);
|
||||
$coin_num = $row['coin'] * ($times - 1);
|
||||
$rowUser = $conn->execQueryOne('SELECT * FROM user WHERE accountid=:accountid;',
|
||||
array(
|
||||
@ -447,12 +447,9 @@ class RoleController{
|
||||
$g_conf_reward_cluster = require('../res/rewardTimes@rewardTimes.php');
|
||||
$times = 1;
|
||||
$reward_conf = array();
|
||||
for ($i = 0; $i <= count($g_conf_reward_cluster); $i++) {
|
||||
$reward_id = $g_conf_reward_cluster[$i + 91100]['id'];
|
||||
for ($i = 0; $i < 4; $i++) {
|
||||
$reward_id = $i + 91100;
|
||||
$reward_conf = getRewardTimesConfig($g_conf_reward_cluster, $reward_id);
|
||||
if ($reward_conf['typeId'] != 1) {
|
||||
continue;
|
||||
}
|
||||
if ((int)$coin_num >= $reward_conf['minGold'] && (int)$coin_num <= $reward_conf['maxGold']) {
|
||||
$times = $reward_conf['times'];
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user