fix upgrade prompt condition

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-09-18 14:36:55 +08:00
parent b2a4f11e0b
commit 738ad474c1

View File

@ -100,7 +100,10 @@ class GroupModel {
Map<String, dynamic> json =
_jsonDecodeResp(utf8.decode(resp.bodyBytes), resp.statusCode);
if (json.containsKey('error')) {
if (json['error'] == 'Admin required!') {
if (json['error'] == 'Admin required!' ||
json['error']
.toString()
.contains('ambiguous column name: status')) {
throw translate('upgrade_rustdesk_server_pro_to_{1.1.10}_tip');
} else {
throw json['error'];