webmain/model/wxgzh/wxgzh.php
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class wxgzhModel extends Model
{
//定义远程连接的
protected $URL_public = 'https://api.weixin.qq.com/cgi-bin/';
protected $URL_gettoken = 'token';
protected $URL_jsapiticket = 'ticket/getticket';
//获取用户信息跟openid
protected $URL_userinfo = 'user/info';
//发模版消息的
protected $URL_tplsend = 'message/template/send';
protected $URL_tplgetlist = 'template/get_all_private_template';
public $appid = '';
public $corpid = '';
public $centerurl = '';
public $optionpid = '-4';
public $backarr = array();
protected $secret = '';
public function initWxgzh(){}
public $option;
public function initModel()
{
$this->backarr = array('errcode'=>-1, 'msg'=>'sorry,error');
$this->option = m('option');
$this->readwxset();
$this->initWxgzh();
}
public function gettourl($can)
{
$url = $this->URL_public;
if(substr($url,0,4)!='http'){
$url=$this->rock->jm->uncrypt($url);
$url.=$this->rock->jm->uncrypt($this->$can);
}else{
$url.=$this->$can;
}
return $url;
}
//读取配置
public function readwxset()
{
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()
后面还有 101 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
