Merge pull request #5728 from 21pages/group
fix upgrade prompt condition
This commit is contained in:
		
						commit
						2e402098a2
					
				| @ -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