两处bug处理
This commit is contained in:
@@ -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();
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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'] : '',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user