diff --git a/sql/gamedb.sql b/sql/gamedb.sql index 24ec640..a8f1980 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -62,8 +62,8 @@ CREATE TABLE `t_hero` ( `hero_exp` int(11) NOT NULL DEFAULT '0' COMMENT '英雄等级', `yoke_lv` int(11) NOT NULL DEFAULT '0' COMMENT '羁绊等级', `yoke_exp` int(11) NOT NULL DEFAULT '0' COMMENT '羁绊经验', - `skill_lv1` int(11) NOT NULL DEFAULT '1' COMMENT '必杀技等级', - `skill_lv2` int(11) NOT NULL DEFAULT '1' COMMENT '躲避技能等级', + `skill_lv1` int(11) NOT NULL DEFAULT '0' COMMENT '必杀技等级', + `skill_lv2` int(11) NOT NULL DEFAULT '0' COMMENT '躲避技能等级', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`idx`), diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index 8aa3264..73b67f4 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -199,14 +199,6 @@ class BaseAuthedController extends BaseController { public function _isVirtualItem($itemId) { $isVirtualItem = false; - if($itemId == $this->goldID) - { - $isVirtualItem = true; - } - else if($itemId == $this->lotteryID) - { - $isVirtualItem = true; - } return $isVirtualItem; } @@ -235,10 +227,9 @@ class BaseAuthedController extends BaseController { array( 'accountid' => $this->_getAccountId(), 'item_id' => $item['item_id'], - 'color_id' => 0, - 'status' => 1, - 'active_time' => 0, - 'item_num' => $item['item_num'], + 'item_num' => 1, + 'item_state' => 0, + 'try_expire_time' => 0, 'createtime' => $this->_getNowTime(), 'modifytime' => $this->_getNowTime() ) diff --git a/webapp/models/HeroSkin.php b/webapp/models/HeroSkin.php index 01c9310..331bafe 100644 --- a/webapp/models/HeroSkin.php +++ b/webapp/models/HeroSkin.php @@ -53,7 +53,7 @@ class HeroSkin extends BaseModel { 'skin_state' => 0, 'get_from' => 0, 'consume_num' => 0, - 'trytime' => 0, + 'try_expire_time' => 0, 'createtime' => myself()->_getNowTime(), 'modifytime' => myself()->_getNowTime() )