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(