好像是类型不匹配
UserController中的login方法
int id = userService.login(form.getCode());
传入的是整型
public Integer login(String code) {
String openId = getOpenId(code);
Integer id = userDao.searchIdByOpenId(openId);
if (id == null) {
throw new EmosException(“账户不存在”);
}
// 从消息队列中接收消息,转移到消息表
messageTask.receiveAsync(id + “”);
return id;
}
但是在MessageTask中的 receiveAsync是需要字符型 ,是不是需要转换一下喃
public int receiveAsync(String topic) {
return receive(topic);
}
登录后可查看更多问答,登录/注册