Compare commits

..

1 Commits

Author SHA1 Message Date
4f2ecd1276 fix: nas页面从pc重定向到mobile时丢失参数问题 2025-07-09 09:52:45 +08:00
5 changed files with 679 additions and 678 deletions

View File

@@ -85,9 +85,9 @@ class BaseController extends Controller
$ctrl = \think\helper\Str::snake($this->controller); $ctrl = \think\helper\Str::snake($this->controller);
if ($ctrl == 'tops_nas') { if ($ctrl == 'tops_nas') {
if ($this->country_code == 'US') { if ($this->country_code == 'US') {
return $this->redirect(url("@usmobile/$ctrl/$action")); return $this->redirect(url("@usmobile/$ctrl/$action", $this->request->param()));
} }
return $this->redirect(url("@mobile/$ctrl/$action")); return $this->redirect(url("@mobile/$ctrl/$action", $this->request->param()));
} }
if (strpos($domain, 'orico.cc')) { if (strpos($domain, 'orico.cc')) {

View File

@@ -264,6 +264,7 @@ class TopsNas extends BaseController
return $this->fetch(); return $this->fetch();
} }
// 根据分类获取文章 // 根据分类获取文章
private function getArticleByCategory($categorys, $limit = null) private function getArticleByCategory($categorys, $limit = null)
{ {

0
app/mobile/view/tops_nas/helper.phtml Executable file → Normal file
View File

0
app/mobile/view/tops_nas/helper_detail.phtml Executable file → Normal file
View File