mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: create dyn antifraud
Closes #278 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -369,6 +369,9 @@ class GStorage {
|
||||
static bool get biliSendCommAntifraud => GStorage.setting
|
||||
.get(SettingBoxKey.biliSendCommAntifraud, defaultValue: false);
|
||||
|
||||
static bool get enableCreateDynAntifraud => GStorage.setting
|
||||
.get(SettingBoxKey.enableCreateDynAntifraud, defaultValue: false);
|
||||
|
||||
static bool get coinWithLike =>
|
||||
GStorage.setting.get(SettingBoxKey.coinWithLike, defaultValue: false);
|
||||
|
||||
@@ -613,6 +616,7 @@ class SettingBoxKey {
|
||||
showDmChart = 'showDmChart',
|
||||
enableCommAntifraud = 'enableCommAntifraud',
|
||||
biliSendCommAntifraud = 'biliSendCommAntifraud',
|
||||
enableCreateDynAntifraud = 'enableCreateDynAntifraud',
|
||||
coinWithLike = 'coinWithLike',
|
||||
isPureBlackTheme = 'isPureBlackTheme',
|
||||
antiGoodsDyn = 'antiGoodsDyn',
|
||||
|
||||
@@ -46,6 +46,20 @@ class Utils {
|
||||
|
||||
static const channel = MethodChannel("PiliPlus");
|
||||
|
||||
static void checkCreatedDyn(id, dynText) async {
|
||||
if (id != null) {
|
||||
dynamic res = await DynamicsHttp.dynamicDetail(id: id, clearCookie: true);
|
||||
showDialog(
|
||||
context: Get.context!,
|
||||
builder: (context) => AlertDialog(
|
||||
title: Text('动态检查结果'),
|
||||
content: SelectableText(
|
||||
'${res['status'] ? '无账号状态下找到了你的动态,动态正常!' : '你的动态被shadow ban(仅自己可见)!'} \n\n动态内容: $dynText'),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// 动态点赞
|
||||
static Future onLikeDynamic(item, VoidCallback callback) async {
|
||||
feedBack();
|
||||
|
||||
Reference in New Issue
Block a user