|
@@ -1,7 +1,9 @@
|
|
|
package org.springblade.auth.granter;
|
|
|
|
|
|
+import org.springblade.auth.constant.WxAppletConstant;
|
|
|
import org.springblade.auth.service.BladeUserDetails;
|
|
|
import org.springblade.auth.utils.TokenUtil;
|
|
|
+import org.springblade.auth.utils.WxAppletUtil;
|
|
|
import org.springblade.common.cache.CacheNames;
|
|
|
import org.springblade.core.redis.cache.BladeRedis;
|
|
|
import org.springblade.core.tool.utils.ObjectUtil;
|
|
@@ -137,8 +139,8 @@ public class CaptchaTokenGranter extends AbstractTokenGranter {
|
|
|
String jsCode = parameters.get("jsCode");
|
|
|
|
|
|
// 获取openId
|
|
|
- String openId = "odMjv5Yndizr4ybYaShMt9s9GMVI";
|
|
|
-// String openId = WxAppletUtil.getOpenId(WxAppletConstant.STORAGE_APPID, WxAppletConstant.STORAGE_SECRET, jsCode);
|
|
|
+// String openId = "odMjv5Yndizr4ybYaShMt9s9GMVI";
|
|
|
+ String openId = WxAppletUtil.getOpenId(WxAppletConstant.STORAGE_APPID, WxAppletConstant.STORAGE_SECRET, jsCode);
|
|
|
|
|
|
IUserClient userClient = SpringUtil.getBean(IUserClient.class);
|
|
|
|