1
This commit is contained in:
parent
386833a32b
commit
bd775572fd
@ -209,7 +209,7 @@ class SignController{
|
|||||||
$dayid = ($week - 1) * 7;
|
$dayid = ($week - 1) * 7;
|
||||||
//如果大于配置表最后一周,按最后一周奖励
|
//如果大于配置表最后一周,按最后一周奖励
|
||||||
$g_conf_sign_cluster = require('../res/signDaily@signDaily.php');
|
$g_conf_sign_cluster = require('../res/signDaily@signDaily.php');
|
||||||
if ($dayid > count($g_conf_sign_cluster)) {
|
if ($dayid >= count($g_conf_sign_cluster)) {
|
||||||
$dayid = count($g_conf_sign_cluster) - 7;
|
$dayid = count($g_conf_sign_cluster) - 7;
|
||||||
}
|
}
|
||||||
for ($day = $dayid + 1; $day <= $dayid + 7; $day++)
|
for ($day = $dayid + 1; $day <= $dayid + 7; $day++)
|
||||||
@ -281,8 +281,8 @@ class SignController{
|
|||||||
$dayid = ($week - 1) * 7 + $_REQUEST['sign_id'];
|
$dayid = ($week - 1) * 7 + $_REQUEST['sign_id'];
|
||||||
//如果大于配置表最后一周,按最后一周奖励
|
//如果大于配置表最后一周,按最后一周奖励
|
||||||
$g_conf_sign_cluster = require('../res/signDaily@signDaily.php');
|
$g_conf_sign_cluster = require('../res/signDaily@signDaily.php');
|
||||||
if ($dayid > count($g_conf_sign_cluster)) {
|
if ($dayid >= count($g_conf_sign_cluster)) {
|
||||||
$dayid = count($g_conf_sign_cluster) - 7;
|
$dayid = count($g_conf_sign_cluster) + $_REQUEST['sign_id'] - 7;
|
||||||
}
|
}
|
||||||
$s = $this->getSign($dayid + 90000);
|
$s = $this->getSign($dayid + 90000);
|
||||||
$item_id = $s['item_id'];
|
$item_id = $s['item_id'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user