mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-29 06:45:54 +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']),
|
'data': AiConclusionData.fromJson(res.data['data']),
|
||||||
};
|
};
|
||||||
} else {
|
} 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']) {
|
if (res['status']) {
|
||||||
AiConclusionData data = res['data'];
|
AiConclusionData data = res['data'];
|
||||||
aiConclusionResult = data.modelResult;
|
aiConclusionResult = data.modelResult;
|
||||||
|
} else if (res['handling']) {
|
||||||
|
SmartDialog.showToast("AI处理中,请稍后再试");
|
||||||
} else {
|
} else {
|
||||||
SmartDialog.showToast("当前视频可能暂不支持AI视频总结");
|
SmartDialog.showToast("当前视频暂不支持AI视频总结");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user