From d7f1a00e1f0c9cd392ce1e60d75967815247911f Mon Sep 17 00:00:00 2001 From: wangwei01 Date: Wed, 3 Jul 2019 16:28:35 +0800 Subject: [PATCH] 1 --- webapp/controller/ShareController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/controller/ShareController.class.php b/webapp/controller/ShareController.class.php index ac9dde8..312e651 100644 --- a/webapp/controller/ShareController.class.php +++ b/webapp/controller/ShareController.class.php @@ -93,10 +93,10 @@ class ShareController{ phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家'); return; } - /*if ($row['keys_num'] < 1) { + if ($row['keys_num'] < 1) { phpcommon\sendError(ERR_USER_BASE + 3, '钥匙不足'); die(); - }*/ + } $ret = $conn->execScript('UPDATE user SET keys_num=:keys_num, modify_time=:modify_time ' . ' WHERE accountid=:accountid;', array(