mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt ai conclusion failure toast (#1197)
This commit is contained in:
@@ -812,7 +812,8 @@ class VideoHttp {
|
||||
'data': AiConclusionData.fromJson(res.data['data']),
|
||||
};
|
||||
} else {
|
||||
return {'status': false, 'msg': res.data['message']};
|
||||
final handling = res.data['code'] == 0 && res.data['data']['code'] == 1;
|
||||
return {'status': false, 'msg': res.data['message'], 'handling': handling};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -754,8 +754,10 @@ class UgcIntroController extends CommonIntroController with ReloadMixin {
|
||||
if (res['status']) {
|
||||
AiConclusionData data = res['data'];
|
||||
aiConclusionResult = data.modelResult;
|
||||
} else if (res['handling']) {
|
||||
SmartDialog.showToast("AI处理中,请稍后再试");
|
||||
} else {
|
||||
SmartDialog.showToast("当前视频可能暂不支持AI视频总结");
|
||||
SmartDialog.showToast("当前视频暂不支持AI视频总结");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user