Authored by tanling

bug fix

... ... @@ -19,6 +19,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Objects;
... ... @@ -164,11 +165,11 @@ public class UserProxyService {
Map<String,Object> params = Maps.newHashMap();
params.put("uids", uids.stream().map(String::valueOf).collect(Collectors.joining(",")));
List<UserInfoRspBO> userInfo ;
UserInfoRspBO[] userInfo ;
try {
userInfo = serviceCaller.get("uic.getNickName", url, params,
List.class, null).get(500, TimeUnit.MILLISECONDS);
Map<Integer, String> nickNameMap = userInfo.stream().collect(Collectors.toMap(UserInfoRspBO::getYohoUid, UserInfoRspBO::getNickName));
UserInfoRspBO[].class, null).get(500, TimeUnit.MILLISECONDS);
Map<Integer, String> nickNameMap = Arrays.stream(userInfo).collect(Collectors.toMap(UserInfoRspBO::getYohoUid, UserInfoRspBO::getNickName));
return nickNameMap;
}catch (Exception ex){
... ...