|
@@ -109,9 +109,17 @@ public class EventMsgService implements GzhMsgService {
|
|
|
User user = userService.getSyncUser(info.getOpenid(), info.getUnionid(), wxSyncLog);
|
|
User user = userService.getSyncUser(info.getOpenid(), info.getUnionid(), wxSyncLog);
|
|
|
|
|
|
|
|
String state = redisService.getStr(RedisService.key.WX_GZH_QRCODE_SHARED_LOGIN.getNameFormat(sceneKey));
|
|
String state = redisService.getStr(RedisService.key.WX_GZH_QRCODE_SHARED_LOGIN.getNameFormat(sceneKey));
|
|
|
- // 转跳参数
|
|
|
|
|
- String json = Codec.DoBase64.custom().setData(state).decodeAsText();
|
|
|
|
|
- AuthRedirect re = Jsons.parseObject(json, AuthRedirect.class);
|
|
|
|
|
|
|
+ AuthRedirect re = null;
|
|
|
|
|
+ if (StrUtil.isNotEmpty(state)) {
|
|
|
|
|
+ // 转跳参数
|
|
|
|
|
+ String json = Codec.DoBase64.custom().setData(state).decodeAsText();
|
|
|
|
|
+ if (StrUtil.isNotEmpty(json)) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ re = Jsons.parseObject(json, AuthRedirect.class);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
Boolean isNewUser = false;
|
|
Boolean isNewUser = false;
|
|
|
if (user == null) {
|
|
if (user == null) {
|
|
|
isNewUser = true;
|
|
isNewUser = true;
|