diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCall.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCall.ets index 12920e494500835c965b788603408dbcd66990ba..2315fb33fd424b42e1fa3374b3b59c0856a42965 100644 --- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCall.ets +++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/common/MethodCall.ets @@ -50,10 +50,10 @@ export default class MethodCall { } hasArgument(key: string): boolean { - if (arguments == null) { + if (this.args == null) { return false; - } else if (arguments instanceof Map) { - return (this.args as Map).has(key); + } else if (this.args instanceof Map) { + return (this.args as Map).get(key); } else if (ToolUtils.isObj(this.args)) { return this.args.hasOwnProperty(key); } else {