liugl
2020-11-02 c2877e03172d68af0a0eacd56ac0f5d4c67c6f26
app/src/main/java/com/okgoincar/bean/websocket/HeartBean.java
@@ -2,6 +2,7 @@
import com.okgoincar.netUtls.NetKitKt;
import com.okgoincar.utils.Cache.CacheKey;
public class HeartBean {
    private int code = 200;
@@ -44,10 +45,14 @@
    public static class DataBean{
        private int type = 2;
        private int userId = NetKitKt.getUserId();
        private String device = "carDevice";
        private String token;
        public DataBean() {
            type = 2;
            userId =  NetKitKt.getUserId();
            device = "carDevice";
            token = CacheKey.INSTANCE.getToken();
        }
    }