|
|
@@ -20,7 +20,6 @@ import com.cyksj.model.dto.MsgEvent;
|
|
|
import com.cyksj.model.entity.User;
|
|
|
import com.cyksj.model.entity.UserGzhRelation;
|
|
|
import com.cyksj.model.entity.WxApp;
|
|
|
-import com.cyksj.model.entity.WxSyncLog;
|
|
|
import com.cyksj.redis.RedisService;
|
|
|
import com.cyksj.service.distribute.DistributeService;
|
|
|
import com.cyksj.service.distribute.equipment.EquipmentDistributeService;
|
|
|
@@ -109,9 +108,9 @@ public class EventMsgService implements GzhMsgService {
|
|
|
}
|
|
|
//迁移公众号之后同步授权后信息
|
|
|
//是否是迁移用户
|
|
|
- WxSyncLog wxSyncLog = wxSyncLogMapper.selectOne(Wrappers.lambdaQuery(WxSyncLog.class)
|
|
|
- .eq(WxSyncLog::getToAppid, weChatConfig.getAppid())
|
|
|
- .eq(WxSyncLog::getNewOpenid, openId).last("limit 1"));
|
|
|
+// WxSyncLog wxSyncLog = wxSyncLogMapper.selectOne(Wrappers.lambdaQuery(WxSyncLog.class)
|
|
|
+// .eq(WxSyncLog::getToAppid, weChatConfig.getAppid())
|
|
|
+// .eq(WxSyncLog::getNewOpenid, openId).last("limit 1"));
|
|
|
|
|
|
WxApp wxApp = wxAppMapper.selectOne(Wrappers.lambdaQuery(WxApp.class)
|
|
|
.eq(WxApp::getGzhOriginalId, msgEvent.getToUserName()).last("limit 1"));
|
|
|
@@ -119,7 +118,7 @@ public class EventMsgService implements GzhMsgService {
|
|
|
return false;
|
|
|
}
|
|
|
GzhUnionidUserinfo info = weChatService.getUserInfo2(weChatService.getAccessToken(wxApp.getAppId()), openId);
|
|
|
- User user = userService.getSyncUser(info.getOpenid(), info.getUnionid(), wxSyncLog);
|
|
|
+ User user = userService.getSyncUser(info.getOpenid(), info.getUnionid(), null);
|
|
|
|
|
|
String state = redisService.getStr(RedisService.key.WX_GZH_QRCODE_SHARED_LOGIN.getNameFormat(sceneKey));
|
|
|
GzhBodyDto gzhDto = null;
|