fix: replyAdd params
This commit is contained in:
@ -357,8 +357,8 @@ class VideoHttp {
|
|||||||
'plat': 1,
|
'plat': 1,
|
||||||
'oid': oid,
|
'oid': oid,
|
||||||
'type': type.index,
|
'type': type.index,
|
||||||
// 'root': root == null || root == 0 ? '' : root,
|
'root': root == null || root == 0 ? '' : root,
|
||||||
// 'parent': parent == null || parent == 0 ? '' : parent,
|
'parent': parent == null || parent == 0 ? '' : parent,
|
||||||
'message': message,
|
'message': message,
|
||||||
'at_name_to_mid': {},
|
'at_name_to_mid': {},
|
||||||
if (pictures != null) 'pictures': jsonEncode(pictures),
|
if (pictures != null) 'pictures': jsonEncode(pictures),
|
||||||
@ -377,8 +377,8 @@ class VideoHttp {
|
|||||||
},
|
},
|
||||||
data: formData,
|
data: formData,
|
||||||
);
|
);
|
||||||
log(res.toString());
|
|
||||||
if (res.data['code'] == 0) {
|
if (res.data['code'] == 0) {
|
||||||
|
log(res.toString());
|
||||||
return {'status': true, 'data': res.data['data']};
|
return {'status': true, 'data': res.data['data']};
|
||||||
} else {
|
} else {
|
||||||
return {'status': false, 'data': [], 'msg': res.data['message']};
|
return {'status': false, 'data': [], 'msg': res.data['message']};
|
||||||
|
|||||||
@ -312,13 +312,13 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
).then(
|
).then(
|
||||||
(value) => {
|
(value) {
|
||||||
// 完成评论,数据添加
|
// 完成评论,数据添加
|
||||||
if (value != null && value['data'] != null)
|
if (value != null && value['data'] != null) {
|
||||||
{
|
_videoReplyController.replyList
|
||||||
_videoReplyController.replyList
|
.add(value['data']);
|
||||||
.add(value['data'])
|
_videoReplyController.replyList.refresh();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user