no message

doctree
zcy 2023-05-05 23:54:51 +08:00
parent adba9c676e
commit 1b0ca773a7
6 changed files with 94 additions and 65 deletions

View File

@ -74,6 +74,17 @@ class Config
return "https://www.testingcloud.club/sapi/"; return "https://www.testingcloud.club/sapi/";
} }
static public function RedisServer() {
if("localhost" == $_SERVER['SERVER_NAME']){
return "192.168.0.200";
}
if ( "0.0.0.0" == $_SERVER['SERVER_NAME']){
return "192.168.0.200";
}
if("testingcloud.club" == $_SERVER['SERVER_NAME']){
return "127.0.0.1";
}
}
} }

View File

@ -105,7 +105,7 @@ class ArticleTree extends Controller
} }
function articleAction(){ function articleAction(){
$redis = new \Redis(); $redis = new \Redis();
$redis->connect('127.0.0.1', 6379); $redis->connect(\App\Config::RedisServer(), 6379);
//查看服务是否运行 //查看服务是否运行
$commentModel = new Models\DocComment(); $commentModel = new Models\DocComment();
$doccoment = $commentModel->DocComments((int)$this->params[0]); $doccoment = $commentModel->DocComments((int)$this->params[0]);

View File

@ -1,6 +1,5 @@
<?php <?php
namespace App\Controllers; namespace App\Controllers;
use App\Models; use App\Models;
use Core\Controller; use Core\Controller;
@ -8,12 +7,12 @@ use Core\View;
use Parsedown; use Parsedown;
use App\Config; use App\Config;
class NewUi extends Controller class NewUi extends Controller
{ {
function indexAction() { function indexAction() {
$redis = new \Redis(); $redis = new \Redis();
$redis->connect('127.0.0.1', 6379); print_r(\App\Config::RedisServer());
$redis->connect(\App\Config::RedisServer(), 6379);
$docModel = new Models\Doc(); $docModel = new Models\Doc();
$limit = 5; $limit = 5;
@ -26,6 +25,8 @@ class NewUi extends Controller
$doc_all = $docModel->getArticlesTree(-1); $doc_all = $docModel->getArticlesTree(-1);
$redis->set("artilcetree", $doc_all); $redis->set("artilcetree", $doc_all);
} }
// $doc_all = $docModel->getArticlesTree(-1);
$groupstype = $docModel->GetAllGroupType(); $groupstype = $docModel->GetAllGroupType();
if(sizeof($this->params) == 2){ if(sizeof($this->params) == 2){

View File

@ -27,7 +27,7 @@
<li> <a href="#ui2css" data-toggle="tab">数据采集器(软硬件)</a></li> <li> <a href="#ui2css" data-toggle="tab">数据采集器(软硬件)</a></li>
<li> <a href="#wireless_open" data-toggle="tab">无线开关</a></li> <li> <a href="#wireless_open" data-toggle="tab">无线开关</a></li>
<li> <a href="#learning_tool" data-toggle="tab">深度学习模型验证工具</a></li> <li> <a href="#learning_tool" data-toggle="tab">深度学习模型验证工具</a></li>
<li> <a href="#vtk_tool" data-toggle="tab">vtk点云编辑工具</a></li>
</ul> </ul>
</div> </div>
<div class="col-md-8 tab-content"> <div class="col-md-8 tab-content">
@ -66,63 +66,80 @@
<a href="https://gitee.com/290198252/proto-debuger"> qt qml版本源码</a> <a href="https://gitee.com/290198252/proto-debuger"> qt qml版本源码</a>
<a href="https://gitee.com/290198252/proto-debuger/releases"> 二进制包</a> <a href="https://gitee.com/290198252/proto-debuger/releases"> 二进制包</a>
</p> </p>
</div> </div>
<div class="tab-pane fade in active" id="webrtc"> <div class="tab-pane fade in active" id="webrtc">
<p style="display: block;font-size: 25px ; text-align: left;"> <p style="display: block;font-size: 25px ; text-align: left;">
webrtc easy demo webrtc easy demo
</p> </p>
<p style="display: block;font-size: 20px ; text-align: left;"> <p style="display: block;font-size: 20px ; text-align: left;">
webrtc c++ native 库 demo webrtc c++ native 库 demo
实现功能: 实现功能:
</p> </p>
<p style="display: block;font-size: 15px ; text-align: left;"> <p style="display: block;font-size: 15px ; text-align: left;">
基于QT 基于QT
</p> </p>
<p style="display: block;font-size: 15px ; text-align: left;"> <p style="display: block;font-size: 15px ; text-align: left;">
webrtc摄像头/桌面捕获功能 webrtc摄像头/桌面捕获功能
</p> </p>
<p style="display: block;font-size: 15px ; text-align: left;"> <p style="display: block;font-size: 15px ; text-align: left;">
opengl渲染/多播放窗格管理 opengl渲染/多播放窗格管理
</p> </p>
<p style="display: block;font-size: 15px ; text-align: left;"> <p style="display: block;font-size: 15px ; text-align: left;">
janus meeting room janus meeting room
</p> </p>
<p> <p>
</p> </p>
<img src="https://www.testingcloud.club/sapi/api/image_download/12cd0d66-d213-11ec-827c-525400986ccb.png"> <img src="https://www.testingcloud.club/sapi/api/image_download/12cd0d66-d213-11ec-827c-525400986ccb.png">
<p> <p>
下载地址和源码 下载地址和源码
</p> </p>
<p> <p>
<a href="https://gitee.com/290198252/multimedia/tree/master/client/webrtc_capture"> 源码</a> <a href="https://gitee.com/290198252/multimedia/tree/master/client/webrtc_capture"> 源码</a>
<a href="https://gitee.com/290198252/proto-debuger/releases"> 二进制包</a> <a href="https://gitee.com/290198252/proto-debuger/releases"> 二进制包</a>
</p> </p>
</div> </div>
<div class="tab-pane fade in active" id="wireless_open"> <div class="tab-pane fade in active" id="wireless_open">
<p style="display: block;font-size: 25px ; text-align: left;"> <p style="display: block;font-size: 25px ; text-align: left;">
wifi,蓝牙 - 无线开关 wifi,蓝牙 - 无线开关
</p> </p>
<img src="https://www.testingcloud.club/sapi/api/image_download/eb749834-e3fc-11ec-827c-525400986ccb.png"> <img src="https://www.testingcloud.club/sapi/api/image_download/eb749834-e3fc-11ec-827c-525400986ccb.png">
<p style="display: block;font-size: 15px ; text-align: left;"> <p style="display: block;font-size: 15px ; text-align: left;">
实现功能: 实现功能:
</p> </p>
<p style="display: block;font-size: 15px ; text-align: left;"> <p style="display: block;font-size: 15px ; text-align: left;">
通过wifi/蓝牙实现远程开关电器或者其他电子设备 通过wifi/蓝牙实现远程开关电器或者其他电子设备
</p> </p>
<p style="display: block;font-size: 15px ; text-align: left;"> <p style="display: block;font-size: 15px ; text-align: left;">
电路原理图: 电路原理图:
</p> </p>
<img src="https://www.testingcloud.club/sapi/api/image_download/2ead3c53-e41a-11ec-827c-525400986ccb.png"> <img src="https://www.testingcloud.club/sapi/api/image_download/2ead3c53-e41a-11ec-827c-525400986ccb.png">
<p style="display: block;font-size: 15px ; text-align: left;"> <p style="display: block;font-size: 15px ; text-align: left;">
实物图: 实物图:
</p> </p>
<img src="https://www.testingcloud.club/sapi/api/image_download/cd68064f-e49a-11ec-827c-525400986ccb.jpeg"> <img src="https://www.testingcloud.club/sapi/api/image_download/cd68064f-e49a-11ec-827c-525400986ccb.jpeg">
</div> </div>
<div class="tab-pane fade in active" id="learning_tool"> <div class="tab-pane fade in active" id="learning_tool">
<p style="display: block;font-size: 25px ; text-align: left;"> <p style="display: block;font-size: 25px ; text-align: left;">
深度学习验证工具 深度学习验证工具
</p> </p>
</div> </div>
<div class="tab-pane fade in active" id="vtk_tool">
<p style="display: block;font-size: 25px ; text-align: left;">
vtk+pcl 点云编辑工具
</p>
<img src="https://www.testingcloud.club/sapi/api/image_download/eb749834-e3fc-11ec-827c-525400986ccb.png">
<p style="display: block;font-size: 15px ; text-align: left;">
实现功能:
</p>
<p style="display: block;font-size: 15px ; text-align: left;">
通过wifi/蓝牙实现远程开关电器或者其他电子设备
</p>
<p style="display: block;font-size: 15px ; text-align: left;">
电路原理图:
</p>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -39,8 +39,8 @@ class View
{ {
static $twig = null; static $twig = null;
if ($twig === null) { if ($twig === null) {
$loader = new \Twig_Loader_Filesystem(dirname(__DIR__) . '/App/Views'); $loader = new \Twig\Loader\FilesystemLoader(dirname(__DIR__) . '/App/Views');
$twig = new \Twig_Environment($loader); $twig = new \Twig\Environment($loader);
} }
echo $twig->render($template, $args); echo $twig->render($template, $args);
} }

View File

@ -1,7 +1,7 @@
{ {
"require": { "require": {
"twig/twig": "~2.0", "twig/twig": "~2.0",
"propel/propel": "~2.0@dev", "propel/propel": "~2.0@dev",
"erusev/parsedown": "^1.7", "erusev/parsedown": "^1.7",
"hoegh/parsedown-toc": "^1.3" "hoegh/parsedown-toc": "^1.3"
}, },