两处bug处理

This commit is contained in:
2017-10-13 15:26:41 +08:00
parent 0ca4e5f54b
commit d660451431
3 changed files with 12 additions and 12 deletions

View File

@@ -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();
// }
}
/**

View File

@@ -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'] : '',
);

View File

@@ -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 '用户签名',