Commit fe413bab authored by pete谢兆麟's avatar pete谢兆麟

登陆接口加密

parent b7b2cf77
......@@ -51,7 +51,7 @@ extension YHLoginViewModel {
let timestamp = Int(Date().timeIntervalSince1970)
print(timestamp)
let params: [String : Any] = ["mobile": phone,
let params: [String : Any] = ["mobile": XXTEA.encryptString(toBase64String: phone, stringKey: "galaxyapps") ?? phone,
"sms_code": code,
"client": "super_app",
"testTimestamp":timestamp]
......
......@@ -271,7 +271,7 @@ class YHAllApiName {
//登录
struct Auth {
static let login = "infoflow/auth/login"
static let login = "infoflow/auth/v2/login"
static let wxlogin = "infoflow/auth/wechat-login"
static let oneKeyLogin = "infoflow/auth/native-login"
static let appleLogin = "infoflow/auth/apple-login"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment