|
@@ -182,13 +182,7 @@ public class UserService {
|
|
|
|
|
|
public APIResult<UserInfoVo> refresh(String deviceCode, String merchant, Boolean force) {
|
|
|
|
|
|
- APIResult<List<TerminalDeviceVo>> deviceAPIResult = userClient.findByDeviceCode(deviceCode);
|
|
|
- if (!deviceAPIResult.getSuccess()) {
|
|
|
- log.error("load device api error, {}", deviceAPIResult.getMessage());
|
|
|
- return APIResult.error(ApiWebCode.NOT_FOUND);
|
|
|
- }
|
|
|
-
|
|
|
- List<TerminalDeviceVo> deviceVoList = deviceAPIResult.getData();
|
|
|
+ List<TerminalDeviceVo> deviceVoList = userClient.findByDeviceCode(deviceCode);
|
|
|
if (CollectionUtils.isEmpty(deviceVoList)) {
|
|
|
log.error("device code not bind any eid! deviceCode={}", deviceCode);
|
|
|
return APIResult.error(ApiWebCode.NOT_EXISTS);
|