修改说明;修改基础代码;

This commit is contained in:
2023-09-18 17:22:30 +08:00
parent 996f7014ee
commit c7426e4094
11 changed files with 277 additions and 120 deletions

View File

@@ -69,7 +69,7 @@
<div class="layui-form-item full-line">
<label class="layui-form-label">属性</label>
<div class="layui-input-block">
<div data-toggle="property-input" data-name="property">{$row.property|raw|ua_htmlspecialchars_decode|default=''}</div>
<div data-toggle="property-input" data-name="property">{$row.property|raw|default=''}</div>
</div>
</div>
<div class="layui-form-item full-line">

View File

@@ -101,7 +101,7 @@
</div>
<div class="value">
<div class="article-item">
{$row.describe|raw|ua_htmlspecialchars_decode}
{$row.describe|raw}
</div>
</div>
</div>

View File

@@ -219,39 +219,6 @@ if (!function_exists('unparse_url')) {
}
}
if (!function_exists('ua_htmlspecialchars')) {
function ua_htmlspecialchars($string)
{
if (is_null($string)) {
$string = '';
}
return htmlspecialchars($string);
}
}
if (!function_exists('ua_htmlentities')) {
function ua_htmlentities($string)
{
if (is_null($string)) {
$string = '';
}
return htmlentities($string);
}
}
if (!function_exists('ua_htmlspecialchars_decode')) {
function ua_htmlspecialchars_decode($string, $flag = ENT_QUOTES | ENT_SUBSTITUTE)
{
if (is_null($string)) {
$string = '';
}
return htmlspecialchars_decode($string, $flag);
}
}
function build_upload_url($url, $upload_type = null)
{
if (is_null($upload_type)) {

View File

@@ -246,7 +246,8 @@ class AdminController extends BaseController
*/
protected function buildTableParames($excludeFields = [])
{
$get = $this->request->get('', null, []);
$get = $this->request->get('', null);
$page = isset($get['page']) && !empty($get['page']) ? $get['page'] : 1;
$limit = isset($get['limit']) && !empty($get['limit']) ? $get['limit'] : 15;
$group = isset($get['group']) && !empty($get['group']) ? $get['group'] : null;

View File

@@ -5,5 +5,5 @@ namespace app\common\provider;
// 应用请求对象类
class Request extends \think\Request
{
protected $filter = ['ua_htmlspecialchars'];
protected $filter = [];
}