include/chajian/rockwxqyChajian.php

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
/**
*	信呼企业微信平台
*	2024-11-09
*/

class rockwxqyChajian extends Chajian
{
	private $platurl 	= '',$cnum = '';
	private $optionobj;
	
	protected function initChajian()
	{
		$this->platurl = getconfig('rockwxqy_url');
		if(!$this->platurl){
			$this->platurl = $this->rock->jm->base64decode('aHR0cHM6Ly93eHF5LnJvY2tvYS5jb20v');
		}
		$this->optionobj = m('option');
		$this->cnum 	 = $this->optionobj->getval('wxqyplat_cnum');
	}
	
	public function isconfig()
	{
		if($this->cnum)return true;
		return false;
	}
	
	public function geturlstr($act, $can=array(),$mact='')
	{
		$url = $this->platurl;
		$mode= 'wxqyopen';
		if($mact)$mode = $mact;
		$url.= 'index.php?a='.$act.'&m='.$mode.'';
		$url.= '&cnum='.$this->cnum.'&xinhukey='.getconfig('xinhukey').'';
		if(is_array($can))foreach($can as $k=>$v)$url.='&'.$k.'='.$v.'';
		return $url;
	}
	
	public function getdata($act, $can=array(), $data=array())
	{
		if(!$this->cnum)return returnerror('未设置单位编号');
		$url 	= $this->geturlstr($act, $can);
		if($data){
			$cont 	= c('curl')->postcurl($url, $data);
		}else{
			$cont 	= c('curl')->getcurl($url);
		}
		$data  	= array('code'=>201,'success'=>false,'msg'=>'出错了返回:'.htmlspecialchars($cont).'');
		if($cont!='' && substr($cont,0,1)=='{'){
			$data  	= json_decode($cont, true);
		}
		return $data;
	}
	
	public function postdata($act, $data=array(), $can=array())
	{
		return $this->getdata($act, $can, $data);
	}
	
	/**
后面还有 71 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。