source/admin/weixin_sucai.ctrl.php

(开头部分) 2KB

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

<?php
class weixin_sucaiControl extends skymvc{
	public $wx;
	
	public function __construct(){
			parent::__construct();			
		}
		
		public function onInit(){
			$wid=get_post('wid','i');
			$wid=intval($_SESSION['ssweixinid']);
			$this->wx=$weixin=M("weixin")->selectRow("id=".$wid);
			
			if(empty($weixin)){
				$this->goall("请选择微信",1);
			}
			$this->smarty->assign("weixin",$weixin);
		}
	
	public function onDefault(){
		$rscount=true;
		$limit=20;
		$where=" pid=0 ";
		if($this->wx){
			$where.=" AND wid=".$this->wx['id'];
		}
		$option=array(
			"where"=>$where,
			"start"=>get('per_page','i'),
			"limit"=>$limit,
			"order"=>" id DESC"
		);
		$data=M("weixin_sucai")->select($option,$rscount);
		$pagelist=$this->pagelist($rscount,$limit,$url);
		$this->smarty->assign(array(
			"data"=>$data,
			"pagelist"=>$pagelist
		));
		$this->smarty->display("weixin_sucai/index.html");
	}
	
	public function onAdd(){
		$id=get_post("id","i");
		$data=M("weixin_sucai")->selectRow("id=".$id);
		if($data){
			$data['child']=M("weixin_sucai")->select(array("where"=>" wid=".$this->wx['id']." AND pid=".$id));
		}
		$this->smarty->assign(array(
			"data"=>$data,
		));
		$this->smarty->display("weixin_sucai/add.html");
	}
	
	public function onAddiframe(){
		$id=get_post("id","i");
		$data=M("weixin_sucai")->selectRow("id=".$id);
		$this->smarty->assign(array(
			"data"=>$data,
			"pid"=>get_post('pid','i')
		));
后面还有 44 行代码,购买后查看完整代码

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

AI 解读 AI

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

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