Commit f30e71e96df0a6c5ddfc7451b0a21e2d4d31c208

Authored by wdn127929
1 parent 91ce530c

微信登录

... ... @@ -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
... ...