Merge branch 'dev' of ssh://git.bgbg.live:18150/root/SEONexus into dev
This commit is contained in:
@@ -8,10 +8,13 @@ use app\home\controller\User;
|
||||
use think\facade\Route;
|
||||
|
||||
|
||||
Route::get('article/fenlei/:category', function (\think\Request $Request) {
|
||||
Route::get('/article/fenlei/:category', function (\think\Request $Request) {
|
||||
return view('test/test01/index.html');
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 路由配置文件
|
||||
*/
|
||||
|
||||
@@ -334,7 +334,7 @@ class Novel extends BaseController
|
||||
|
||||
$intNId = $Request->param('n_id');
|
||||
|
||||
$intForgeId = $Request->param('n_forge_id');
|
||||
$intNForgeId = $Request->param('n_forge_id');
|
||||
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
@@ -344,7 +344,7 @@ class Novel extends BaseController
|
||||
$arrNovel = $NovelModel->getNovelByNId($intNId);
|
||||
|
||||
foreach ($arrNovel['n_forge_novel'] as $arrForgeNovel) {
|
||||
if ($arrForgeNovel['n_forge_id'] == $intForgeId) {
|
||||
if ($arrForgeNovel['n_forge_id'] == $intNForgeId) {
|
||||
$arrNovel['n_name'] = $arrForgeNovel['n_forge_title'];
|
||||
break;
|
||||
}
|
||||
@@ -421,9 +421,9 @@ class Novel extends BaseController
|
||||
'strNovelDescription' => $arrNovel['n_description'],
|
||||
]);
|
||||
|
||||
$strTitleTemplate = $Request->DomainModel->getFomartSubject('NOVEL@GETNOVELINFO@TITLE', $intForgeId);
|
||||
$strKeywordsTemplate = $Request->DomainModel->getFomartSubject('NOVEL@GETNOVELINFO@KEYWORDS', $intForgeId);
|
||||
$strDescriptionTemplate = $Request->DomainModel->getFomartSubject('NOVEL@GETNOVELINFO@DESCRIPTION', $intForgeId);
|
||||
$strTitleTemplate = $Request->DomainModel->getFomartSubject('NOVEL@GETNOVELINFO@TITLE', $intNForgeId);
|
||||
$strKeywordsTemplate = $Request->DomainModel->getFomartSubject('NOVEL@GETNOVELINFO@KEYWORDS', $intNForgeId);
|
||||
$strDescriptionTemplate = $Request->DomainModel->getFomartSubject('NOVEL@GETNOVELINFO@DESCRIPTION', $intNForgeId);
|
||||
|
||||
$strTitle = ConverterMovel::convert($strTitleTemplate);
|
||||
$strKeywords = ConverterMovel::convert($strKeywordsTemplate);
|
||||
@@ -450,7 +450,7 @@ class Novel extends BaseController
|
||||
]);
|
||||
|
||||
$strView = $boolIsMobile ? 'getNovelInfo' : 'pc/getNovelInfo';
|
||||
$this->generateGrm(2, $intNId . '-' . $intForgeId, 50);
|
||||
$this->generateGrm(2, $intNId . '-' . $intNForgeId, 50);
|
||||
return $this->rending($strView);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
<?php
|
||||
// 这是系统自动生成的middleware定义文件
|
||||
|
||||
use app\services\SiteContext;
|
||||
|
||||
return [
|
||||
function ($request, \Closure $next) {
|
||||
app(SiteContext::class)->initCfg();
|
||||
return $next($request);
|
||||
},
|
||||
|
||||
];
|
||||
|
||||
33
code/app/home/view/default/test/test01/index.html
Normal file
33
code/app/home/view/default/test/test01/index.html
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
|
||||
{novel:info n_id="33" n_key="arrNovel01" n_forge_id="1125940" /}
|
||||
{$arrNovel01.n_name}
|
||||
|
||||
|
||||
<!-- {$DomainModel->d_domain} -->
|
||||
|
||||
<!-- {site:replace code="INDEX@INDEX@TITLE"}
|
||||
-->
|
||||
|
||||
<!-- {novel:list count="10" n_category="$Request.route.category" d_key="d_key" d_val="novel" p_val="page_data" cache_life="1000"}
|
||||
<li>
|
||||
Index: {$d_key}
|
||||
Title: {$novel.n_name}
|
||||
Author: {$novel.n_category}
|
||||
</li>
|
||||
{/novel:list} -->
|
||||
|
||||
<!--
|
||||
|
||||
{novel:pager page="1" limit="10" n_category="$Request.route.category" d_key="d_key" d_val="novel" p_val="page_data"
|
||||
cache_life="1000" func="generateSearchPager"}
|
||||
<li>
|
||||
Index: {$d_key}
|
||||
Title: {$novel.n_name}
|
||||
Author: {$novel.n_category}
|
||||
</li>
|
||||
{/novel:pager}
|
||||
|
||||
{php}var_dump($page_data);{/php}
|
||||
|
||||
-->
|
||||
Reference in New Issue
Block a user