Commit 4f0f7fc1 authored by 夏彬's avatar 夏彬

修改为支持utfmb4 修改message api

parent 72db797d
......@@ -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']='utf8mb4'; //设置默认编码
$ecms_config['db']['dbchar']='utf8mb4'; //数据库默认编码
$ecms_config['db']['dbtbpre']='phome_'; //数据表前缀
$dbtbpre=$ecms_config['db']['dbtbpre']; //数据表前缀
$ecms_config['db']['showerror']=1; //显示SQL错误提示(0为不显示,1为显示)
......
......@@ -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'));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment