fix: 图片提交4x,提示画质。iOS logo提交;

This commit is contained in:
chengsiwen committed 2026-07-01 16:24:15 +08:00
1 parent 2f1ec27802
commit 9e10608245
85 files changed
+1027 -645

No files matched your search

+68
View File
@@ -0,0 +1,68 @@
import 'package:skywood/global/request/api_const.dart';
import 'package:skywood/global/request/app_request.dart';
import 'package:skywood/global/tool/sky_log.dart';
import 'package:skywood/utils/tools/token_manage.dart';
class EventClient {
static Future eventCreateHis({
required String shortPlayId,
required String videoId
}) {
// {"short_play_id": shortPlayId, "video_id": videoId}
Map<String, dynamic> params = {"short_play_id": shortPlayId, "video_id": videoId};
return AppRequest.post(ApiString.eventCreateHistory, data: params).then((value) {
SkyLog.print(value.data, tag: "eventCreateHis");
});
}
static Future eventEnterApp() {
return AppRequest.post(ApiString.eventUserEnterApp).then((value) {});
}
static Future<bool> eventOnline({String? oldToken}) {
String token = TokenManager().get();
if (token == '') return Future<bool>.value(false);
final body = <String, dynamic>{};
if (oldToken != null) body['token'] = oldToken;
return AppRequest.post(ApiString.eventUserOnline, data: body).then((value) {
return value.isSuccess;
});
}
static Future<bool> eventOLeaveApp({String? oldToken}) {
String token = TokenManager().get();
if (token == '') return Future<bool>.value(false);
final body = <String, dynamic>{};
if (oldToken != null) body['token'] = oldToken;
return AppRequest.post(ApiString.eventUserLeaveApp, data: body).then((value) {
return value.isSuccess;
});
}
// 上报播放时长
static Future eventPlaySeconds({
required int shortPlayId,
required int videoId,
required int seconds,
}) {
return AppRequest.post(ApiString.eventPlaySeconds, data: {
"short_play_id": shortPlayId,
"video_id": videoId,
"play_seconds": seconds,
}).then((value) {});
}
// 上报观看时长
static Future eventWatchTime({
required int shortPlayId,
required int seconds,
}) {
return AppRequest.post(ApiString.eventWatchTime, data: {
"short_play_id": shortPlayId,
// 时间戳的毫秒数
"request_id": DateTime.now().millisecondsSinceEpoch,
"duration": seconds,
}).then((value) {});
}
}
+2 -2
View File
@@ -1,7 +1,7 @@
final class ApiConst {
ApiConst._();
static const appName = 'skywood';
static const appName = 'Glimzo';
static const int pageSize = 12;
static const String apiLink = 'https://api-quickeltv.quickeltv.com/quickeltv';
@@ -75,7 +75,7 @@ class ApiStringPlay {
static const String getWaterflowList = "/newShortPlay";
/// getSearchHots GET /search/hots 搜索热门列表
// getSearch GET /search 关键词搜索,query: search
/// getSearch GET /search 关键词搜索,query: search
///==== collect POST /collect 收藏,body: short_play_id, video_id
///==== cancelCollect POST /cancelCollect 取消收藏,body: short_play_id
///==== getMyCollections GET /myCollections 我的收藏列表,分页