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