mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-03 03:19:27 +08:00
fix upgrade prompt condition
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
b2a4f11e0b
commit
738ad474c1
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user