From d8905a842c759c611f7a43c3bc56d03284ca55ab Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 1 Dec 2020 16:32:43 +0800 Subject: [PATCH] 1 --- sql/gamedb.sql | 24 ---------------------- webapp/controller/HangController.class.php | 12 ----------- 2 files changed, 36 deletions(-) diff --git a/sql/gamedb.sql b/sql/gamedb.sql index dc7249b..7b77702 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -102,12 +102,6 @@ CREATE TABLE `user` ( `new_second_equip` int(11) NOT NULL DEFAULT '2' COMMENT '新玩家隔天结算武器', `sum_coin` double NOT NULL DEFAULT '0' COMMENT '累计充值金额', `recharge_times_total` int(11) NOT NULL DEFAULT '0' COMMENT '累计充值次数', - - /* - `rmb_num` int(11) NOT NULL DEFAULT '0' COMMENT '点券数量', - `max_single_recharge` int(11) NOT NULL DEFAULT '0' COMMENT '最大单次充值数量', - `passcard` int(11) NOT NULL DEFAULT '0' COMMENT '购买进阶手册状态', - */ PRIMARY KEY (`idx`), UNIQUE KEY `accountid` (`accountid`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; @@ -306,22 +300,4 @@ CREATE TABLE `festival_activity` ( UNIQUE KEY `accountid` (`accountid`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -/*DROP TABLE IF EXISTS `orderinfo`;*/ -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -/* -CREATE TABLE `orderinfo` ( - `idx` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id', - `accountid` varchar(60) DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)', - `orderid` varchar(60) DEFAULT '' COMMENT '订单id', - `rmb_num` int(11) NOT NULL DEFAULT '0' COMMENT '点券数量', - `money` int(11) NOT NULL DEFAULT '0' COMMENT '金钱数量', - `custom_data` mediumblob COMMENT '其他字段', - `itemid` int(11) NOT NULL DEFAULT '0' COMMENT '道具id', - `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', - `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', - PRIMARY KEY (`idx`), - UNIQUE KEY `account_orderid` (`accountid`, `orderid`) -) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -*/ -- Dump completed on 2015-08-19 18:51:22 diff --git a/webapp/controller/HangController.class.php b/webapp/controller/HangController.class.php index 8bcd956..5059f91 100644 --- a/webapp/controller/HangController.class.php +++ b/webapp/controller/HangController.class.php @@ -148,20 +148,8 @@ class HangController{ if (time() >= strtotime($season['open_time']) && time() <= strtotime($season['end_time'])) { $open_time = strtotime($season['open_time']); $end_time = strtotime($season['end_time']); - /*$ret = $conn->execScript('UPDATE user SET season_time=:season_time, modify_time=:modify_time ' . - ' WHERE accountid=:accountid;', - array( - ':accountid' => $account_id, - ':season_time' => $end_time, - ':modify_time' => time() - )); - if (!$ret) { - die(); - return; - }*/ $number = $i; $item_multiply = $this->getExplode($season['reward']); - //$ii = 0; for($ii = 1; $ii <= count($item_multiply); $ii++) { $rowpass = $conn->execQueryOne('SELECT active_status, honor_status ' . ' FROM passinfo WHERE accountid=:accountid AND passid=:passid;',