IsAppKey 判断是否为应用级 key
(key string)
| 290 | |
| 291 | // IsAppKey 判断是否为应用级 key |
| 292 | func IsAppKey(key string) bool { |
| 293 | return len(key) > len(KeyPrefixApp) && key[:len(KeyPrefixApp)] == KeyPrefixApp |
| 294 | } |
| 295 | |
| 296 | // IsUserKey 判断是否为用户级 key |
| 297 | func IsUserKey(key string) bool { |
no outgoing calls