Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
s_ibanshou
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋林
s_ibanshou
Commits
4f0f7fc1
Commit
4f0f7fc1
authored
Sep 05, 2017
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改为支持utfmb4 修改message api
parent
72db797d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
config.php
e/config/config.php
+2
-2
Message.php
e/extend/internalApi/ucenter/Message.php
+3
-2
No files found.
e/config/config.php
View file @
4f0f7fc1
...
...
@@ -17,8 +17,8 @@ $ecms_config['db']['dbport']='3306'; //端口,不填为按默认
$ecms_config
[
'db'
][
'dbusername'
]
=
'integration'
;
//数据库用户名
$ecms_config
[
'db'
][
'dbpassword'
]
=
''
;
//数据库密码
$ecms_config
[
'db'
][
'dbname'
]
=
'wxh_cms'
;
//数据库名
$ecms_config
[
'db'
][
'setchar'
]
=
'utf8'
;
//设置默认编码
$ecms_config
[
'db'
][
'dbchar'
]
=
'utf8'
;
//数据库默认编码
$ecms_config
[
'db'
][
'setchar'
]
=
'utf8
mb4
'
;
//设置默认编码
$ecms_config
[
'db'
][
'dbchar'
]
=
'utf8
mb4
'
;
//数据库默认编码
$ecms_config
[
'db'
][
'dbtbpre'
]
=
'phome_'
;
//数据表前缀
$dbtbpre
=
$ecms_config
[
'db'
][
'dbtbpre'
];
//数据表前缀
$ecms_config
[
'db'
][
'showerror'
]
=
1
;
//显示SQL错误提示(0为不显示,1为显示)
...
...
e/extend/internalApi/ucenter/Message.php
View file @
4f0f7fc1
...
...
@@ -54,11 +54,12 @@ class Message extends Client
* @param $commentId
* @param $replyUserId
* @param string $replyedComment
* @param string $extra
* @return mixed
*/
public
static
function
addComment
(
$userId
,
$title
,
$sourceUrl
,
$from
,
$type
,
$commentId
,
$replyUserId
,
$replyedComment
=
''
)
public
static
function
addComment
(
$userId
,
$title
,
$sourceUrl
,
$from
,
$type
,
$commentId
,
$replyUserId
,
$replyedComment
=
''
,
$extra
=
''
)
{
return
self
::
call
(
'message.addComment'
,
compact
(
'userId'
,
'title'
,
'sourceUrl'
,
'from'
,
'type'
,
'commentId'
,
'replyUserId'
,
'replyedComment'
));
return
self
::
call
(
'message.addComment'
,
compact
(
'userId'
,
'title'
,
'sourceUrl'
,
'from'
,
'type'
,
'commentId'
,
'replyUserId'
,
'replyedComment'
,
'extra'
));
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment