feat: loginApp refs #6868

This commit is contained in:
Sergio De la torre 2024-09-13 11:54:04 +02:00
parent 75a621094c
commit 98ecb8e365
2 changed files with 3 additions and 3 deletions

View File

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

View File

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