fix: merge options from ma.Options and ma.ActionOptions

This commit is contained in:
lilong.129
2024-12-10 11:21:55 +08:00
parent f6d49495e0
commit 1b547d3cfd
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
v5.0.0+2412101027
v5.0.0+2412101121

View File

@@ -85,9 +85,9 @@ type MobileAction struct {
func (ma MobileAction) GetOptions() []ActionOption {
var actionOptionList []ActionOption
// Notice: merge options from ma.Options and ma.ActionOptions
if ma.Options != nil {
actionOptionList = append(actionOptionList, ma.Options.Options()...)
return actionOptionList
}
actionOptionList = append(actionOptionList, ma.ActionOptions.Options()...)
return actionOptionList