source/admin/weixin_command.ctrl.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
if(!defined("ROOT_PATH")) exit("die Access ");
class weixin_commandControl 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(){
$where=" 1=1 ";
if($this->wx){
$where.=" AND wid=".$this->wx['id'];
}
$url="{$appadmin}?m=weixin_command&a=default&id=".$this->wx['id'];
$limit=20;
$start=get("per_page","i");
$option=array(
"start"=>intval(get_post('per_page')),
"limit"=>$limit,
"order"=>" isdefault DESC,id DESC",
"where"=>$where
);
$rscount=true;
$data=M("weixin_command")->select($option,$rscount);
$pagelist=$this->pagelist($rscount,$limit,$url);
$this->smarty->assign(
array(
"data"=>$data,
"pagelist"=>$pagelist,
"rscount"=>$rscount,
"url"=>$url,
"weixin_list"=>M("weixin")->id_list(),
"fun_list"=>M("weixin_command")->fun_list,
"type_list"=>M("weixin_command")->type_list,
)
);
$this->smarty->display("weixin_command/index.html");
}
public function onAdd(){
$id=get_post("id","i");
if($id){
$data=M("weixin_command")->selectRow(array("where"=>"id={$id}"));
}
$this->smarty->assign(array(
后面还有 48 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。