This commit is contained in:
aozhiwei 2020-09-11 18:58:22 +08:00
parent c2ab5f176a
commit 8fbc62a801

View File

@ -250,7 +250,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 + 1 > count($g_conf_sign_cluster)) { if ($dayid + 1 >= count($g_conf_sign_cluster)) {
$dayid = count($g_conf_sign_cluster) - 7; $dayid = count($g_conf_sign_cluster) - 7;
} }
//error_log($dayid); //error_log($dayid);
@ -321,8 +321,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;
} }
//$dayid = $_REQUEST['sign_id']; //$dayid = $_REQUEST['sign_id'];
$s = $this->getSign($dayid + 90000); $s = $this->getSign($dayid + 90000);
@ -411,8 +411,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;
} }
//$dayid = $_REQUEST['sign_id']; //$dayid = $_REQUEST['sign_id'];