mod: 移除toast中的emoji

This commit is contained in:
orz12
2024-03-22 02:10:49 +08:00
parent 8cd5784318
commit b60d412b8c
3 changed files with 7 additions and 7 deletions

View File

@@ -135,7 +135,7 @@ class BangumiIntroController extends GetxController {
Future actionLikeVideo() async { Future actionLikeVideo() async {
var result = await VideoHttp.likeVideo(bvid: bvid, type: !hasLike.value); var result = await VideoHttp.likeVideo(bvid: bvid, type: !hasLike.value);
if (result['status']) { if (result['status']) {
SmartDialog.showToast(!hasLike.value ? '点赞成功 👍' : '取消赞'); SmartDialog.showToast(!hasLike.value ? '点赞成功' : '取消赞');
hasLike.value = !hasLike.value; hasLike.value = !hasLike.value;
bangumiDetail.value.stat!['likes'] = bangumiDetail.value.stat!['likes'] =
bangumiDetail.value.stat!['likes'] + (!hasLike.value ? 1 : -1); bangumiDetail.value.stat!['likes'] + (!hasLike.value ? 1 : -1);
@@ -189,7 +189,7 @@ class BangumiIntroController extends GetxController {
var res = await VideoHttp.coinVideo( var res = await VideoHttp.coinVideo(
bvid: bvid, multiply: _tempThemeValue); bvid: bvid, multiply: _tempThemeValue);
if (res['status']) { if (res['status']) {
SmartDialog.showToast('投币成功 👏'); SmartDialog.showToast('投币成功');
hasCoin.value = true; hasCoin.value = true;
bangumiDetail.value.stat!['coins'] = bangumiDetail.value.stat!['coins'] =
bangumiDetail.value.stat!['coins'] + _tempThemeValue; bangumiDetail.value.stat!['coins'] + _tempThemeValue;
@@ -224,7 +224,7 @@ class BangumiIntroController extends GetxController {
delMediaIdsNew = []; delMediaIdsNew = [];
// 重新获取收藏状态 // 重新获取收藏状态
queryHasFavVideo(); queryHasFavVideo();
SmartDialog.showToast('操作成功'); SmartDialog.showToast('操作成功');
Get.back(); Get.back();
} }
} }

View File

@@ -222,7 +222,7 @@ class VideoIntroController extends GetxController {
if (result['status']) { if (result['status']) {
// hasLike.value = result["data"] == 1 ? true : false; // hasLike.value = result["data"] == 1 ? true : false;
if (!hasLike.value) { if (!hasLike.value) {
SmartDialog.showToast('点赞成功 👍'); SmartDialog.showToast('点赞成功');
hasLike.value = true; hasLike.value = true;
videoDetail.value.stat!.like = videoDetail.value.stat!.like! + 1; videoDetail.value.stat!.like = videoDetail.value.stat!.like! + 1;
} else if (hasLike.value) { } else if (hasLike.value) {
@@ -280,7 +280,7 @@ class VideoIntroController extends GetxController {
var res = await VideoHttp.coinVideo( var res = await VideoHttp.coinVideo(
bvid: bvid, multiply: _tempThemeValue); bvid: bvid, multiply: _tempThemeValue);
if (res['status']) { if (res['status']) {
SmartDialog.showToast('投币成功 👏'); SmartDialog.showToast('投币成功');
hasCoin.value = true; hasCoin.value = true;
videoDetail.value.stat!.coin = videoDetail.value.stat!.coin =
videoDetail.value.stat!.coin! + _tempThemeValue; videoDetail.value.stat!.coin! + _tempThemeValue;
@@ -342,7 +342,7 @@ class VideoIntroController extends GetxController {
Get.back(); Get.back();
// 重新获取收藏状态 // 重新获取收藏状态
await queryHasFavVideo(); await queryHasFavVideo();
SmartDialog.showToast('操作成功'); SmartDialog.showToast('操作成功');
} else { } else {
SmartDialog.showToast(result['msg']); SmartDialog.showToast(result['msg']);
} }

View File

@@ -34,7 +34,7 @@ class _ZanButtonState extends State<ZanButton> {
type: widget.replyType!.index, oid: oid, rpid: rpid, action: action); type: widget.replyType!.index, oid: oid, rpid: rpid, action: action);
// SmartDialog.dismiss(); // SmartDialog.dismiss();
if (res['status']) { if (res['status']) {
SmartDialog.showToast(replyItem.action == 0 ? '点赞成功 👍' : '取消赞 💔'); SmartDialog.showToast(replyItem.action == 0 ? '点赞成功' : '取消赞');
if (action == 1) { if (action == 1) {
replyItem.like = replyItem.like! + 1; replyItem.like = replyItem.like! + 1;
replyItem.action = 1; replyItem.action = 1;