Commit 026ff30dd291982f2ddde9710f489c91320b5cd7

Authored by wdn127929
1 parent fec032bb

微信登录

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