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