跟新登录状态

This commit is contained in:
wangshuai 2024-07-06 15:07:45 +08:00
parent dc1a6bc5db
commit 39b0acf162
1 changed files with 3 additions and 2 deletions

View File

@ -87,14 +87,15 @@ public class MeituanServiceImpl implements IMeituanService {
busStoreDayInfoMapper.insertBusStoreDayInfo(busStoreDayInfo);
return R.ok();
} else if (list.size() == 1) {
if (!cookie.getUserName().equals(storeInfo.getBindUser())) {
if (!cookie.getUserName().equals(list.get(0).getBindUser())) {
throw new ServiceException("授权失败,已绑定其他代理账号!");
}
storeInfo.setId(list.get(0).getId());
storeInfo.setStoreAccount(cookie.getAccount());
storeInfo.setStorePassword(cookie.getPassword());
storeInfo.setStoreName(cookie.getWmPoiName());
storeInfo.setStoreCookie(cookie.getCookie());
storeInfo.setPlatformType(String.valueOf(cookie.getBingType()));
storeInfo.setGrantStatus("1");//授权登录状态
return R.ok(busStoreInfoService.updateBusStoreInfo(storeInfo));
} else {
throw new ServiceException("授权失败,请重试!");