123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace app\index\controller;
- use think\Controller;
- use think\worker\Server as WorkerServer;
- class Index extends Controller
- {
- public function index()
- {
- return '<style type="text/css">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} a{color:#2E5CD5;cursor: pointer;text-decoration: none} a:hover{text-decoration:underline; } body{ background: #fff; font-family: "Century Gothic","Microsoft yahei"; color: #333;font-size:18px;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.6em; font-size: 42px }</style><div style="padding: 24px 48px;"> <h1>:) </h1><p> ThinkPHP V5.1<br/><span style="font-size:30px">12载初心不改(2006-2018) - 你值得信赖的PHP框架</span></p></div><script type="text/javascript" src="https://tajs.qq.com/stats?sId=64890268" charset="UTF-8"></script><script type="text/javascript" src="https://e.topthink.com/Public/static/client.js"></script><think id="eab4b9f840753f8e7"></think>';
- }
- /**
- * 数据统计页面
- *
- * @return void
- * @author wj
- * @date 2022-10-13
- */
- public function datastatistics()
- {
- return $this->fetch();
- }
- /**
- * 日间照料中心统计数据
- *
- * @return void
- * @author wj
- * @date 2023-01-31
- */
- public function mealcenterlist()
- {
- return $this->fetch();
- }
- public function test1()
- {
- $class = "app\workerman\ShTcp";
- if (class_exists($class)) {
- $worker = new $class;
- if (!$worker instanceof WorkerServer) {
- var_dump('123');
- }
- } else {
- var_dump("qwe");
- }
- }
- }
|