From 876c7718be19cd2a70917365387bb8370ad4c179 Mon Sep 17 00:00:00 2001 From: wangwei01 Date: Thu, 30 May 2019 14:00:24 +0800 Subject: [PATCH] 1 --- webapp/controller/SignController.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webapp/controller/SignController.class.php b/webapp/controller/SignController.class.php index fb3ceb5..3fa12e4 100644 --- a/webapp/controller/SignController.class.php +++ b/webapp/controller/SignController.class.php @@ -256,7 +256,11 @@ class SignController{ } //获得奖励 $g_conf_sign_cluster = require('../config/game2001api.signDaily.cluster.php'); - $s = $this->getSign($row['sign_days'] % count($g_conf_sign_cluster) + 90000); + $sign_days = $row['sign_days'] % count($g_conf_sign_cluster); + if ($sign_days == 0) { + $sign_days = count($g_conf_sign_cluster); + } + $s = $this->getSign($sign_days + 90000); $item_id = $s['item_id']; $num = $s['num']; if ($double == 1) {