From bc73354f968a4cc579aa73c6ddb4a4a7c5b62730 Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Fri, 26 Mar 2021 16:40:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=BE=E6=8E=A5=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/go-fly.sql | 2 +- static/js/functions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/go-fly.sql b/config/go-fly.sql index d7fc88a..892bbc0 100644 --- a/config/go-fly.sql +++ b/config/go-fly.sql @@ -62,7 +62,7 @@ CREATE TABLE `user_role` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8| INSERT INTO `user_role` (`id`, `user_id`, `role_id`) VALUES -(1, 1, 1), +(1, 1, 2), (2, 2, 2)| DROP TABLE IF EXISTS `role`| diff --git a/static/js/functions.js b/static/js/functions.js index 9f9343b..1ac71f9 100644 --- a/static/js/functions.js +++ b/static/js/functions.js @@ -99,7 +99,7 @@ function replaceContent (content,baseUrl) {// 转义聊天内容中的特殊字 .replace(/\[([^\s\[\]]+?)\]+link\[([^\s\[\]]+?)\]/g, function (face) { // 转义超链接 var text = face.replace(/link\[.*?\]/g, '').replace(/\[|\]/g, ''); var src = face.replace(/^\[([^\s\[\]]+?)\]+link\[/g, '').replace(/\]/g, ''); - return '【'+text+'】'; + return '【'+text+'】'; }) .replace(html(), '\<$1 $2\>').replace(html('/'), '\') // 转移HTML代码 .replace(/\n/g, '
') // 转义换行