//package http.config
//
//import http.HttpConfig
//
//object ConfigCore {
//
//    fun initConfig(config: ConfigParam?, baseUrlSp: String?, signInCheckBaseUrlSp: String?, apiVersion: Int) {
//        if (null != config) {
//            HttpConfig.API_BASE_URL = if (baseUrlSp.isNullOrEmpty()) config.baseUrl else baseUrlSp
//            HttpConfig.SIGN_IN_CHECK_BASE_URL =
//                if (signInCheckBaseUrlSp.isNullOrEmpty()) config.signInCheckBaseUrl else signInCheckBaseUrlSp
//            HttpConfig.HTTP_STRATEGY = config.httpStrategy
//
//            when (apiVersion) {
//                HttpConfig.ApiVersion.V1.code -> {
//                    HttpConfig.BASE_PATH_FACE = HttpConfig.BasePathV1.FACE
//                    HttpConfig.BASE_PATH_SPEAK = HttpConfig.BasePathV1.SPEAK
//                }
//                HttpConfig.ApiVersion.V2.code -> {
//                    HttpConfig.BASE_PATH_FACE = HttpConfig.BasePathV2.ALGORITHM
//                    HttpConfig.BASE_PATH_SPEAK = HttpConfig.BasePathV2.ALGORITHM
//                }
//            }
//        }
//    }
//
//}