public static enum WeChatConfig.OAth2Scope extends Enum<WeChatConfig.OAth2Scope>
| 枚举常量和说明 |
|---|
SNSAPI_BASE
snsapi_base (不弹出授权页面,直接跳转,只能获取用户openid)
|
SNSAPI_USERINFO
snsapi_userinfo (弹出授权页面,可通过openid拿到昵称、性别、所在地。
|
public static final WeChatConfig.OAth2Scope SNSAPI_BASE
public static final WeChatConfig.OAth2Scope SNSAPI_USERINFO
public static WeChatConfig.OAth2Scope[] values()
for (WeChatConfig.OAth2Scope c : WeChatConfig.OAth2Scope.values()) System.out.println(c);
public static WeChatConfig.OAth2Scope valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2020. All rights reserved.