Last active
January 15, 2020 07:27
-
-
Save zhengzhou/cd80b1539fab9eeb6060a15a7a04b5d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// demo模板 | |
func stMeRecharge(_ where : String, what: String) { | |
event("stMeRecharge", ["where": where, "what": what]) | |
} | |
/// 主要方法, | |
func event(name: String, args: [String: String?]) { | |
// 此处适配sdk | |
if args.isEmpty { | |
MobClick.event(name) | |
} else { | |
MobClick.event(name, args) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment