-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] 创建 conversation 成功之后回调中返回当前的 convObject。 #61
Conversation
@sunng87 @sunchanglong |
|
||
// 是否对消息中的 HTML 进行转义 | ||
if (cache.options.encodeHTML) { | ||
data.msg = tool.encodeHTML(data.msg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的 data.msg 会不会是个 json?之前处理了预定义格式的json
已修正,确实有问题,修改的时候没考虑到,谢谢宁姐。 |
// 对象类型 | ||
if (typeof(source) === 'object') { | ||
for (var key in source) { | ||
source[key] = tool.encodeHTML(source[key]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里会不会把数字变成字符串了。。。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还真是。。。我想想。。。
[feature] 创建 conversation 成功之后回调中返回当前的 convObject。
No description provided.