webmain/system/reimplat/reimplatAction.php

(开头部分) 4KB

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

<?php
class reimplatClassAction extends Action
{

	public function setsaveAjax()
	{
		$this->option->setval('reimplat_purl@-7', $this->post('purl'));
		$this->option->setval('reimplat_cnum@-7', $this->post('cnum'));
		$this->option->setval('reimplat_secret@-7', $this->post('secret'));
		$this->option->setval('reimplat_devnum@-7', $this->post('devnum'));
		$this->option->setval('reimplat_huitoken@-7', $this->post('huitoken'));
		return 'ok';
	}
	
	public function getsetAjax()
	{
		$arr= array();
		$arr['purl']		= $this->option->getval('reimplat_purl');
		$arr['cnum']		= $this->option->getval('reimplat_cnum');
		$arr['secret']		= $this->option->getval('reimplat_secret');
		$arr['devnum']		= $this->option->getval('reimplat_devnum');
		$arr['huitoken']	= $this->option->getval('reimplat_huitoken');
		$arr['huiurl']		= ''.URL.'api.php?m=reimplat';
		if(COMPANYNUM)$arr['huiurl'].='&dwnum='.COMPANYNUM.'';
		echo json_encode($arr);
	}
	
	//获取信呼系统上部门
	public function deptdataAjax()
	{
		$this->rows	= array();
		$this->getdept(0, 1);
		
		$this->returnjson(array(
			'totalCount'=> 0,
			'rows'		=> $this->rows
		));
	}
	private function getdept($pid, $oi)
	{
		$db		= m('dept');
		$menu	= $db->getall("`pid`='$pid' order by `sort`",'*');
		foreach($menu as $k=>$rs){
			$sid			= $rs['id'];
			
			$rs['level']	= $oi;
			$rs['stotal']	= $db->rows("`pid`='$sid'");
		
			$rs['zt']		= 1;
			$this->rows[] = $rs;
			$this->getdept($rs['id'], $oi+1);
		}
	}
	
	
	public function deptwxdataAjax()
	{
		$barr = m('reimplat:dept')->getdeptlist();
		if(!$barr['success'])return $barr;
		$rows = $barr['data'];
后面还有 115 行代码,购买后查看完整代码

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

AI 解读 AI

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

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