Merge branch 'main' into feature-minePage

This commit is contained in:
guozhigq
2024-10-05 11:26:29 +08:00
29 changed files with 443 additions and 419 deletions

View File

@ -154,7 +154,7 @@ class UserHttp {
// 暂停switchStatus传true 否则false
var res = await Request().post(
Api.pauseHistory,
queryParameters: {
data: {
'switch': switchStatus,
'jsonp': 'jsonp',
'csrf': await Request.getCsrf(),
@ -173,7 +173,7 @@ class UserHttp {
static Future clearHistory() async {
var res = await Request().post(
Api.clearHistory,
queryParameters: {
data: {
'jsonp': 'jsonp',
'csrf': await Request.getCsrf(),
},
@ -191,7 +191,7 @@ class UserHttp {
}
var res = await Request().post(
Api.toViewLater,
queryParameters: data,
data: data,
);
if (res.data['code'] == 0) {
return {'status': true, 'msg': 'yeah稍后再看'};
@ -210,7 +210,7 @@ class UserHttp {
params[aid != null ? 'aid' : 'viewed'] = aid ?? true;
var res = await Request().post(
Api.toViewDel,
queryParameters: params,
data: params,
);
if (res.data['code'] == 0) {
return {'status': true, 'msg': 'yeah成功移除'};
@ -242,7 +242,7 @@ class UserHttp {
static Future toViewClear() async {
var res = await Request().post(
Api.toViewClear,
queryParameters: {
data: {
'jsonp': 'jsonp',
'csrf': await Request.getCsrf(),
},
@ -258,7 +258,7 @@ class UserHttp {
static Future delHistory(kid) async {
var res = await Request().post(
Api.delHistory,
queryParameters: {
data: {
'kid': kid,
'jsonp': 'jsonp',
'csrf': await Request.getCsrf(),
@ -407,7 +407,7 @@ class UserHttp {
static Future cancelSub({required int seasonId}) async {
var res = await Request().post(
Api.cancelSub,
queryParameters: {
data: {
'platform': 'web',
'season_id': seasonId,
'csrf': await Request.getCsrf(),
@ -424,7 +424,7 @@ class UserHttp {
static Future delFavFolder({required int mediaIds}) async {
var res = await Request().post(
Api.delFavFolder,
queryParameters: {
data: {
'media_ids': mediaIds,
'platform': 'web',
'csrf': await Request.getCsrf(),