feat: loginApp refs #6868
This commit is contained in:
parent
75a621094c
commit
98ecb8e365
|
@ -103,8 +103,8 @@ interface SalixService {
|
|||
@Query("user") user: Any, @Query("password") password: Any, @Query("code") code: Any
|
||||
): Call<LoginSalixVO>
|
||||
|
||||
@POST("Accounts/loginApp")
|
||||
fun loginApp(
|
||||
@POST("Devices/handleUser")
|
||||
fun handleUser(
|
||||
@Body params: LoginApp
|
||||
): Call<LoginAppData>
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ class LoginViewModel(val context: Context) : BaseViewModel(context) {
|
|||
login: LoginApp,
|
||||
|
||||
) {
|
||||
salix.loginApp(login).enqueue(object : SalixCallback<LoginAppData>(context) {
|
||||
salix.handleUser(login).enqueue(object : SalixCallback<LoginAppData>(context) {
|
||||
override fun onSuccess(response: Response<LoginAppData>) {
|
||||
|
||||
_loginApp.value = response.body()
|
||||
|
|
Loading…
Reference in New Issue