mod: update thumb dyn api

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-29 10:54:36 +08:00
parent b876840d08
commit 6c757ec395
5 changed files with 45 additions and 13 deletions

View File

@@ -312,7 +312,7 @@ class RequestUtils {
int count = like?.count ?? 0;
bool status = like?.status ?? false;
int up = status ? 2 : 1;
var res = await DynamicsHttp.likeDynamic(dynamicId: dynamicId, up: up);
var res = await DynamicsHttp.thumbDynamic(dynamicId: dynamicId, up: up);
if (res['status']) {
SmartDialog.showToast(!status ? '点赞成功' : '取消赞');
if (up == 1) {