更新代码

This commit is contained in:
2024-09-07 20:26:15 +08:00
parent 49aea88b0b
commit 03a4db8a4b
12 changed files with 370 additions and 63 deletions

View File

@@ -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)