新增重置密码校验
This commit is contained in:
@@ -4,8 +4,9 @@ import android.content.Context
|
||||
|
||||
object ConstVars {
|
||||
// api 地址
|
||||
// const val BASE_SERVER = "http://192.168.31.190:8088" const val BASE_SERVER = "https://8.137.22.101:8088"
|
||||
const val BASE_SERVER = "https://8.137.22.101:8088"
|
||||
const val BASE_SERVER = "http://192.168.31.130:8088"
|
||||
// const val BASE_SERVER = "https://8.137.22.101: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"
|
||||
@@ -27,10 +28,15 @@ object ConstVars {
|
||||
*/
|
||||
const val BANNER_IMAGE_MAX_SIZE = 2048
|
||||
|
||||
// 用户协议地址
|
||||
const val DICT_KEY_PRIVATE_POLICY_URL = "private_policy"
|
||||
// 重置邮箱间隔
|
||||
const val DIC_KEY_RESET_EMAIL_INTERVAL = "send_reset_password_timeout"
|
||||
}
|
||||
//
|
||||
enum class ErrorCode(val code: Int) {
|
||||
USER_EXIST(10001)
|
||||
USER_EXIST(40001),
|
||||
USER_NOT_EXIST(40002),
|
||||
}
|
||||
|
||||
fun Context.getErrorMessageCode(code: Int?): String {
|
||||
|
||||
Reference in New Issue
Block a user