From f230b9093922cab33e5e15abbed195a359f73a0c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 11 Sep 2020 19:22:10 +0800 Subject: [PATCH] 1 --- webapp/controller/SignController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/controller/SignController.class.php b/webapp/controller/SignController.class.php index 24f9439..ad890af 100644 --- a/webapp/controller/SignController.class.php +++ b/webapp/controller/SignController.class.php @@ -321,7 +321,7 @@ class SignController{ $dayid = ($week - 1) * 7 + $_REQUEST['sign_id']; //如果大于配置表最后一周,按最后一周奖励 $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) + $_REQUEST['sign_id'] - 7; } //$dayid = $_REQUEST['sign_id']; @@ -411,7 +411,7 @@ class SignController{ $dayid = ($week - 1) * 7 + $_REQUEST['sign_id']; //如果大于配置表最后一周,按最后一周奖励 $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) + $_REQUEST['sign_id'] - 7; }