Wallpaper-Genie/lib/global/app_config.dart
Fson 23e35c5bd8 1.增加埋点
2.调整广告开关配置逻辑
2024-08-15 09:52:49 +08:00

13 lines
440 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import 'package:wallpaperx/common/utils/date_utils.dart';
const appName = 'Visual Wallpaper';
/// 保底逻辑:本地设定截止日期(提交日期+3天网络时间超过则默认展示所有广告
DateTime getGuaranteedDate () {
DateTime? commitDate = DateUtils.getDateTime('2024-08-14 18:30:00');
if (commitDate != null) {
return commitDate.add(const Duration(days: 3));
} else {
return DateTime.now();
}
}