From d660451431fcf003832c626afa138791b21a3b28 Mon Sep 17 00:00:00 2001 From: molong Date: Fri, 13 Oct 2017 15:26:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=A4=E5=A4=84bug=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/controller/Front.php | 20 ++++++++++---------- application/common/widget/Form.php | 2 +- data/sql.sql | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/application/common/controller/Front.php b/application/common/controller/Front.php index dc6a00ba..4899723a 100644 --- a/application/common/controller/Front.php +++ b/application/common/controller/Front.php @@ -30,17 +30,17 @@ class Front extends Base { $this->setThemes(); //微信访问时 - if ($this->isMobile() && $this->is_wechat()) { - if (!session('oauth')) { - $this->getOpentId(); - }else{ - $this->wechat_oauth = session('oauth'); - $this->assign('oauth', session('oauth')); - } + // if ($this->isMobile() && $this->is_wechat()) { + // if (!session('oauth')) { + // $this->getOpentId(); + // }else{ + // $this->wechat_oauth = session('oauth'); + // $this->assign('oauth', session('oauth')); + // } - //微信用户直接使用微信登录 - $this->WechatUser(); - } + // //微信用户直接使用微信登录 + // $this->WechatUser(); + // } } /** diff --git a/application/common/widget/Form.php b/application/common/widget/Form.php index 28a2be4c..80c6e303 100644 --- a/application/common/widget/Form.php +++ b/application/common/widget/Form.php @@ -27,7 +27,7 @@ class Form { $data = array( 'type' => $type, 'field' => isset($field['name']) ? $field['name'] : '', - 'value' => isset($info[$field['name']]) ? $info[$field['name']] : $field['value'], + 'value' => isset($info[$field['name']]) ? $info[$field['name']] : (isset($field['value']) ? $field['value'] : ''), 'size' => isset($field['size']) ? $field['size'] : 12, 'option' => isset($field['option']) ? $field['option'] : '', ); diff --git a/data/sql.sql b/data/sql.sql index 4fee1a65..12e3de74 100644 --- a/data/sql.sql +++ b/data/sql.sql @@ -1165,7 +1165,7 @@ CREATE TABLE `sent_member` ( `email` varchar(100) DEFAULT NULL COMMENT '邮箱地址', `mobile` varchar(20) DEFAULT NULL COMMENT '手机号码', `sex` tinyint(3) UNSIGNED NOT NULL DEFAULT '0' COMMENT '性别', - `birthday` date NOT NULL DEFAULT '0000-00-00' COMMENT '生日', + `birthday` date NOT NULL DEFAULT '1917-01-01' COMMENT '生日', `qq` char(10) NOT NULL DEFAULT '' COMMENT 'qq号', `score` mediumint(8) NOT NULL DEFAULT '0' COMMENT '用户积分', `signature` text COMMENT '用户签名',