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/";
}
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(){
$redis = new \Redis();
$redis->connect('127.0.0.1', 6379);
$redis->connect(\App\Config::RedisServer(), 6379);
//查看服务是否运行
$commentModel = new Models\DocComment();
$doccoment = $commentModel->DocComments((int)$this->params[0]);

View File

@ -1,6 +1,5 @@
<?php
namespace App\Controllers;
use App\Models;
use Core\Controller;
@ -8,12 +7,12 @@ use Core\View;
use Parsedown;
use App\Config;
class NewUi extends Controller
{
function indexAction() {
$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();
$limit = 5;
@ -26,6 +25,8 @@ class NewUi extends Controller
$doc_all = $docModel->getArticlesTree(-1);
$redis->set("artilcetree", $doc_all);
}
// $doc_all = $docModel->getArticlesTree(-1);
$groupstype = $docModel->GetAllGroupType();
if(sizeof($this->params) == 2){

View File

@ -27,7 +27,7 @@
<li> <a href="#ui2css" 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="#vtk_tool" data-toggle="tab">vtk点云编辑工具</a></li>
</ul>
</div>
<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/releases"> 二进制包</a>
</p>
</div>
<div class="tab-pane fade in active" id="webrtc">
<p style="display: block;font-size: 25px ; text-align: left;">
webrtc easy demo
</p>
<p style="display: block;font-size: 20px ; text-align: left;">
webrtc c++ native 库 demo
实现功能:
</p>
<p style="display: block;font-size: 15px ; text-align: left;">
基于QT
</p>
<p style="display: block;font-size: 15px ; text-align: left;">
webrtc摄像头/桌面捕获功能
</p>
<p style="display: block;font-size: 15px ; text-align: left;">
opengl渲染/多播放窗格管理
</p>
<p style="display: block;font-size: 15px ; text-align: left;">
janus meeting room
</p>
<p>
</p>
<img src="https://www.testingcloud.club/sapi/api/image_download/12cd0d66-d213-11ec-827c-525400986ccb.png">
<p>
下载地址和源码
</p>
<p>
<a href="https://gitee.com/290198252/multimedia/tree/master/client/webrtc_capture"> 源码</a>
<a href="https://gitee.com/290198252/proto-debuger/releases"> 二进制包</a>
</p>
</div>
<div class="tab-pane fade in active" id="wireless_open">
<p style="display: block;font-size: 25px ; text-align: left;">
wifi,蓝牙 - 无线开关
</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>
<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>
<img src="https://www.testingcloud.club/sapi/api/image_download/cd68064f-e49a-11ec-827c-525400986ccb.jpeg">
</div>
<div class="tab-pane fade in active" id="learning_tool">
<p style="display: block;font-size: 25px ; text-align: left;">
深度学习验证工具
</p>
</div>
</div>
<div class="tab-pane fade in active" id="webrtc">
<p style="display: block;font-size: 25px ; text-align: left;">
webrtc easy demo
</p>
<p style="display: block;font-size: 20px ; text-align: left;">
webrtc c++ native 库 demo
实现功能:
</p>
<p style="display: block;font-size: 15px ; text-align: left;">
基于QT
</p>
<p style="display: block;font-size: 15px ; text-align: left;">
webrtc摄像头/桌面捕获功能
</p>
<p style="display: block;font-size: 15px ; text-align: left;">
opengl渲染/多播放窗格管理
</p>
<p style="display: block;font-size: 15px ; text-align: left;">
janus meeting room
</p>
<p>
</p>
<img src="https://www.testingcloud.club/sapi/api/image_download/12cd0d66-d213-11ec-827c-525400986ccb.png">
<p>
下载地址和源码
</p>
<p>
<a href="https://gitee.com/290198252/multimedia/tree/master/client/webrtc_capture"> 源码</a>
<a href="https://gitee.com/290198252/proto-debuger/releases"> 二进制包</a>
</p>
</div>
<div class="tab-pane fade in active" id="wireless_open">
<p style="display: block;font-size: 25px ; text-align: left;">
wifi,蓝牙 - 无线开关
</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>
<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>
<img src="https://www.testingcloud.club/sapi/api/image_download/cd68064f-e49a-11ec-827c-525400986ccb.jpeg">
</div>
<div class="tab-pane fade in active" id="learning_tool">
<p style="display: block;font-size: 25px ; text-align: left;">
深度学习验证工具
</p>
</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>

View File

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

View File

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