package com.sd.cavphmi.utils

object MyContants {
    const val IS_DEBUG = true
     //测试环境
//    var HOST = "https://itg-dev.cu-sc.com:19443/"
    //开发环境切勿动
    var HOST =   "https://itg-yz.cu-sc.com:13443"
    //智网生产环境地址用于拼接3dtile.json
    var HOST_HTTP_3 = "https://itg-yz.cu-sc.com:13443"
//    /***测试环境socket token***/
//    private val WSTOKEN =
//        "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI0MTc0NDY3NGNlOGM0MDZmOTVkZTVkYWYyMWVlOWQ0ZiIsImNyZWF0ZVRpbWUiOjE3NTUwNzYxMTgxMjQsInVzZXJUeXBlIjoxLCJzb3VyY2UiOjAsInB3ZEV4cGlyZWQiOmZhbHNlLCJ1c2VybmFtZSI6ImNoZW5ieTUxIn0.aPYHCxXgQHj4eYGGZnce5MPJCtmMoRcIIHcNXzMMOHE"

    //登录后拿到Token
    var HTTP_TOKEN =
        "aQQ8U2YPfcnrKgdwrIXcLXdtKyaFavYfKlWkNn26fenMLE2fIMPtbt5dSJX3qgM4yHZJ9bY4esSMHRH0FCs1nMte9P5qsaThTe7frFD9RAtWdlyWof4yISiTfkp0ZHiB"

    //仅仅用于测试接口联通性，这里可不传
//    private val reType = "51world"
    //跟踪车辆的ID 15(模拟) skywell.1ggvlp16.car10  skywell.1ggvlp16.car8

    //用来拼接websocket
    var BASE_HOST =
        if (IS_DEBUG) "172.24.124.130:19443" else "itg-yz.cu-sc.com:19443"

    //websocket地址
    private var WSHOST =  if (IS_DEBUG) "wss://${BASE_HOST}/wsplus/socket?token=121&reType=freedo&" else "wss://${BASE_HOST}/wsplus/socket?token=121&reType=freedo&"
    var vehicleId = "17"
    /**网联车辆位姿  用于实车测试喽数据***/
    var WS_VEH_LOC = "${WSHOST}msgType=2&vehicleId=${vehicleId}"

    /***感知目标物  &intersectionCode=17 停车场  不传就是整个园区***/
//    var WS_FEEL_TARGET = "${WSHOST}msgType=1&intersectionCode=17"
    var WS_FEEL_TARGET = "${WSHOST}&msgType=1"

    /***V2X预警  vehicleId 传了就是获取某一辆车的预警 &vehicleId=***/
    var WS_V2X = "${WSHOST}msgType=4"


    /***网联车辆状态 &vehicleId=''***/
    var WS_VEH_STATU = "${WSHOST}msgType=6"

    /***感知延时 &intersectionCode=''***/
    var WS_PRE_DELAY = "${WSHOST}msgType=7"

    /***交通（感知）事件 &intersectionCode=''***/
    var WS_TRAFFIC_PER = "${WSHOST}msgType=5"

    /***交通信号灯  &intersectionCode=''***/
    var WS_TRAFFIC_LIGHT = "${WSHOST}msgType=3&"


    /***已经**/
    const val ALREADT_ONCE = -1

    const val HTTP_ERROR = 500

}