biezhihua/libdsm

【Flutter】 login use the ncorrect parameter name

Opened this issue · 0 comments

`
/// Login to an SMB server, if login fails, it will try to log in again with Gust identity.
Future login(String host, String loginName, String password) async {
if (_dsmId == null) {
return 0;
}
int result =
await _methodChannel.invokeMethod('DSM_login', <String, dynamic>{
'id': _dsmId,
'host': host,
'login_name': loginName,
'password': password,
});
return result;
}

`
the 'host' should be 'hostName'