feat: mobile 联系我们留言页
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
// 这是系统自动生成的公共文件
|
// 这是系统自动生成的公共文件
|
||||||
|
|
||||||
|
use think\facade\Lang;
|
||||||
|
|
||||||
if (!function_exists('str_contains')) {
|
if (!function_exists('str_contains')) {
|
||||||
/**
|
/**
|
||||||
* 检查字符串是否包含子字符串
|
* 检查字符串是否包含子字符串
|
||||||
@@ -130,8 +132,11 @@ if (!function_exists('lang_i18n')) {
|
|||||||
if (is_null($name)) {
|
if (is_null($name)) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
$path = strtolower(request()->controller() . '/' . request()->action());
|
$path = strtolower(request()->controller() . '/' . request()->action());
|
||||||
$name = $path . '.' . $name;
|
$full_name = $path . '.' . $name;
|
||||||
return lang($name, $vars, $lang);
|
if (!Lang::has($full_name, $lang)) {
|
||||||
|
return $name;
|
||||||
|
}
|
||||||
|
return Lang::get($full_name, $vars, $lang);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ class ContactUs extends Common
|
|||||||
->where('status', '=', 1)
|
->where('status', '=', 1)
|
||||||
->order(['sort' => 'asc', 'id' => 'desc']);
|
->order(['sort' => 'asc', 'id' => 'desc']);
|
||||||
}])
|
}])
|
||||||
|
->atPlatform(request()->from)
|
||||||
->uniqueLabel([
|
->uniqueLabel([
|
||||||
'BANNER_6801be1e7d686',
|
'BANNER_6801be1e7d686',
|
||||||
'BANNER_6801c053ce12e',
|
'BANNER_6801c053ce12e',
|
||||||
|
|||||||
Reference in New Issue
Block a user