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 =
|
Map<String, dynamic> json =
|
||||||
_jsonDecodeResp(utf8.decode(resp.bodyBytes), resp.statusCode);
|
_jsonDecodeResp(utf8.decode(resp.bodyBytes), resp.statusCode);
|
||||||
if (json.containsKey('error')) {
|
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');
|
throw translate('upgrade_rustdesk_server_pro_to_{1.1.10}_tip');
|
||||||
} else {
|
} else {
|
||||||
throw json['error'];
|
throw json['error'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user