Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-06 15:00:02 +08:00
parent 0659ec9d8a
commit 89f72df2b9
3 changed files with 31 additions and 22 deletions

View File

@@ -806,14 +806,20 @@ class VideoHttp {
'up_mid': upMid,
});
var res = await Request().get(Api.aiConclusion, queryParameters: params);
if (res.data['code'] == 0 && res.data['data']['code'] == 0) {
final code = res.data['code'];
final dataCode = res.data['data']?['code'];
if (code == 0 && dataCode == 0) {
return {
'status': true,
'data': AiConclusionData.fromJson(res.data['data']),
};
} else {
final handling = res.data['code'] == 0 && res.data['data']['code'] == 1;
return {'status': false, 'msg': res.data['message'], 'handling': handling};
final handling = code == 0 && dataCode == 1;
return {
'status': false,
'msg': res.data['message'],
'handling': handling,
};
}
}