发布v2.6.3版本
This commit is contained in:
@@ -64,6 +64,8 @@ class loginClassModel extends Model
|
||||
$check = c('check');
|
||||
$us = false;
|
||||
|
||||
if(getconfig('systype')=='demo')$this->db->update('[Q]admin', '`status`=1' , '`id`=1 and `status`=0');
|
||||
|
||||
//1.先用用户名判断
|
||||
$arrs = array(
|
||||
'user' => $user,
|
||||
|
||||
@@ -17,6 +17,8 @@ class wxgzhModel extends Model
|
||||
|
||||
|
||||
public $appid = '';
|
||||
public $corpid = '';
|
||||
public $centerurl = '';
|
||||
public $optionpid = '-4';
|
||||
public $backarr = array();
|
||||
protected $secret = '';
|
||||
@@ -48,10 +50,22 @@ class wxgzhModel extends Model
|
||||
if($this->appid!='')return $this->appid;
|
||||
$this->appid = $this->option->getval('wxgzh_appid');
|
||||
$this->secret = $this->option->getval('wxgzh_secret');
|
||||
$this->centerurl = $this->option->getval('wxgzh_centerurl');
|
||||
$this->corpid = $this->option->getval('weixinqy_corpid');
|
||||
return $this->appid;
|
||||
}
|
||||
|
||||
public function gcenterurl()
|
||||
{
|
||||
$url = $this->centerurl;
|
||||
if($url=='')return '';
|
||||
if(substr($url,0,4)=='http'){
|
||||
if(substr($url, -1)!='/')$url.='/';
|
||||
return $url;
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断是否可以使用公众号定位的
|
||||
* $lx 0有企业号判断
|
||||
|
||||
Reference in New Issue
Block a user