Showing
2 changed files
with
4 additions
and
1 deletions
| @@ -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 |
-
Please register or login to post a comment