diff --git a/lib/http/video.dart b/lib/http/video.dart index b3970a14..6fa7386c 100644 --- a/lib/http/video.dart +++ b/lib/http/video.dart @@ -357,8 +357,8 @@ class VideoHttp { 'plat': 1, 'oid': oid, 'type': type.index, - // 'root': root == null || root == 0 ? '' : root, - // 'parent': parent == null || parent == 0 ? '' : parent, + 'root': root == null || root == 0 ? '' : root, + 'parent': parent == null || parent == 0 ? '' : parent, 'message': message, 'at_name_to_mid': {}, if (pictures != null) 'pictures': jsonEncode(pictures), @@ -377,8 +377,8 @@ class VideoHttp { }, data: formData, ); - log(res.toString()); if (res.data['code'] == 0) { + log(res.toString()); return {'status': true, 'data': res.data['data']}; } else { return {'status': false, 'data': [], 'msg': res.data['message']}; diff --git a/lib/pages/video/detail/reply/view.dart b/lib/pages/video/detail/reply/view.dart index 1b70015c..5d9b7dab 100644 --- a/lib/pages/video/detail/reply/view.dart +++ b/lib/pages/video/detail/reply/view.dart @@ -312,13 +312,13 @@ class _VideoReplyPanelState extends State ); }, ).then( - (value) => { + (value) { // 完成评论,数据添加 - if (value != null && value['data'] != null) - { - _videoReplyController.replyList - .add(value['data']) - } + if (value != null && value['data'] != null) { + _videoReplyController.replyList + .add(value['data']); + _videoReplyController.replyList.refresh(); + } }, ); },