webmain/task/runt/cliAction.php
(完整代码) 922B<?php
/**
* 这个固定 文件名,方法名 参数
* php task.php cli,run -key=a -key2=b
*/
class cliClassAction extends runtAction
{
public function runAction()
{
echo 'Hello Xinhu Cli';
}
//测试队列用的
public function testAction()
{
$rand = $this->getparams('rand');
$this->option->setval('asyntest', $rand);
return 'success';
}
//http://192.168.1.104/app/xinhu/task.php?m=cli&a=urltest
public function urltestAction()
{
$id = $this->get('id');
$id2 = $this->get('id2');
echo $id2;
echo '------';
echo $id;
}
/**
* (异步用)REIM即时通讯平台应用提醒
*/
public function reimplatsendAction()
{
$body = $this->getparams('body');
if(!$body)return;
$cans = json_decode($this->jm->base64decode($body),true);
return m('reimplat:agent')->sendxiao($cans['touid'],$cans['agentname'],$cans['wxarr'],true);
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
