更新代码
This commit is contained in:
@@ -4,10 +4,9 @@ import android.content.Context
|
||||
|
||||
object ConstVars {
|
||||
// api 地址
|
||||
// const val BASE_SERVER = "http://192.168.31.190:8088"
|
||||
const val BASE_SERVER = "http://192.168.31.36:8088"
|
||||
// const val BASE_SERVER = "http://192.168.31.190:8088" const val BASE_SERVER = "https://8.137.22.101:8088"
|
||||
// const val BASE_SERVER = "http://192.168.31.36:8088"
|
||||
|
||||
// const val BASE_SERVER = "https://8.137.22.101:8088"
|
||||
const val MOMENT_LIKE_CHANNEL_ID = "moment_like"
|
||||
const val MOMENT_LIKE_CHANNEL_NAME = "Moment Like"
|
||||
|
||||
@@ -16,6 +15,7 @@ object ConstVars {
|
||||
enum class ErrorCode(val code: Int) {
|
||||
USER_EXIST(10001)
|
||||
}
|
||||
|
||||
fun Context.getErrorMessageCode(code: Int?): String {
|
||||
return when (code) {
|
||||
10001 -> getString(R.string.error_10001_user_exist)
|
||||
|
||||
Reference in New Issue
Block a user