From 6c61a749320f2bbb148979dd3d403cc5a854a6a3 Mon Sep 17 00:00:00 2001 From: wangwei01 Date: Mon, 29 Apr 2019 15:54:58 +0800 Subject: [PATCH] 1 --- webapp/controller/HangController.class.php | 3 +++ webapp/controller/RoleController.class.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/webapp/controller/HangController.class.php b/webapp/controller/HangController.class.php index 6a427dd..572aeaf 100644 --- a/webapp/controller/HangController.class.php +++ b/webapp/controller/HangController.class.php @@ -54,6 +54,9 @@ class HangController{ } $item_id = 1; $num = time() - $row['hang_time']; + if ($num >= 4 * 3600) { + $num = 4 * 3600; + } if ($weight != 0) { $num = $num * 3; } diff --git a/webapp/controller/RoleController.class.php b/webapp/controller/RoleController.class.php index 9aa12db..5804bf5 100644 --- a/webapp/controller/RoleController.class.php +++ b/webapp/controller/RoleController.class.php @@ -92,7 +92,7 @@ class RoleController{ $alive_time_his = $alive_time; $add_HP_his = $add_HP; $coin_num = $_REQUEST['coin_num']; //金币 - $integral = $_REQUEST['integral']; //积分 + $integral = $_REQUEST['score']; //积分 if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家'); return;