Commit 026ff30dd291982f2ddde9710f489c91320b5cd7

Authored by wdn127929
1 parent fec032bb

微信登录

... ... @@ -33,6 +33,8 @@ class Constant {
static const String qiniuUrl = 'https://qn.colorcun.com/';
static const String wechatAccessTokenKey = 'access_token';
static const Map<String, List<String>> authorityConfig = {
'充值短信': ['管理员', '店长', '客户经理', '收银员', '服务员', '前台'],
'有效期': ['管理员', '店长', '客户经理', '收银员', '服务员', '前台'],
... ...
... ... @@ -171,7 +171,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver {
///微信登陆
_wxLogin() {
// fluwx.sendWeChatAuth(scope: "snsapi_userinfo");
//去授权
fluwx
.authBy(
which: NormalAuth(
... ... @@ -179,6 +179,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver {
// state: 'wechat_sdk_demo_test',
))
.then((data) {});
// }
}
///获取微信登录code
... ...