mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
@@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user