Commit b7d8f529 authored by jiaorz's avatar jiaorz

注册接口修改

parent 2f1195f3
......@@ -566,7 +566,7 @@ public class Msg {
Msg entity = new Msg();
entity.id = ObjectId.get();
entity.userId = Integer.parseInt(user.getId().toString());
entity.userId = user.getId();
if("10000" ==user.getId().toString())
entity.nickname ="客服公众号";
else
......
......@@ -4,7 +4,6 @@ import java.util.List;
import java.util.Map;
import com.xxfc.platform.im.utils.DateUtil;
import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Embedded;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;
......@@ -28,7 +27,7 @@ import lombok.Setter;
public class User {
@Id
private ObjectId id;// 用户Id
private Integer id;// 用户Id
//@JSONField(serialize = false)
......@@ -189,7 +188,7 @@ public class User {
// ********************引用字段********************
public ObjectId getId() {
public Integer getId() {
return id;
}
......@@ -210,7 +209,7 @@ public class User {
this.num = num;
}
public void setid(ObjectId id) {
public void setId(Integer id) {
this.id = id;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment