no message
parent
adba9c676e
commit
1b0ca773a7
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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]);
|
||||
|
|
|
@ -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){
|
||||
|
|
|
@ -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">
|
||||
|
@ -123,6 +123,23 @@
|
|||
深度学习验证工具
|
||||
</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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue