Skip to content

Instantly share code, notes, and snippets.

@zhengzhou
Last active January 15, 2020 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhengzhou/cd80b1539fab9eeb6060a15a7a04b5d3 to your computer and use it in GitHub Desktop.
Save zhengzhou/cd80b1539fab9eeb6060a15a7a04b5d3 to your computer and use it in GitHub Desktop.
/// 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