2 Star 6 Fork 1

wslrj / deituiCMs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
task.php 907 Bytes
一键复制 编辑 原始数据 按行查看 历史
wslrj 提交于 2020-12-30 22:23 . update 3.1
<?php
error_reporting(E_ALL ^ E_NOTICE);
header("Content-type:text/html; charset=utf-8");
require("config/config.php");
define("ROOT_PATH", str_replace("\\", "/", dirname(__FILE__))."/");
define("CONTROL_DIR","source/index");
define("MODEL_DIR","source/model");
require("./skymvc/skymvc.php");
function userinit(){
set_time_limit(0);
session_write_close();
header("Content-type:text/html;charset=utf-8");
$que=new queue("mysql");
ob_implicit_flush();
while(true){
$task=$que->rpop();
if(PHP_SAPI !== 'cli'){
echo str_repeat(" ", 44096);
}
if(empty($task)){
CC("test","test_task")->echoMsg("任务全部完成");
sleep(2);
}else{
switch($task["action"]){
case "sendSms":
CC("test","test_task")->sendSms($task["data"]);
break;
default:
CC("test","test_task")->echoMsg("执行任务");
break;
}
}
}
exit;
}
?>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/wslrj/deituiCMs.git
git@gitee.com:wslrj/deituiCMs.git
wslrj
deituiCMs
deituiCMs
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891