修复投票功能无法投票的问题

hmxc
小赖 4 years ago
parent 18017af532
commit ad4f8b41ba

@ -259,9 +259,9 @@ class _VotingDetailPageState extends State<VotingDetailPage> {
BotToast.showText(text: '请先选择候选人!');
} else {
BaseModel baseModel =
await ManagerFunc.vote(_selectId, widget.id);
await ManagerFunc.vote(widget.id, _selectId);
if (baseModel.status) {
Get.dialog(_shouwVoteDialog());
await Get.dialog(_shouwVoteDialog());
_hasVoted = true;
setState(() {});
} else {

Loading…
Cancel
Save