[update] - chagne api

This commit is contained in:
2024-09-30 11:58:38 +07:00
parent 2a401eec51
commit dcf55db57e

View File

@@ -12,13 +12,13 @@ export class CathayAuthService extends BaseService {
public http: HttpClient
) {
super('', http)
super.fullUrl = `${this.API_URL}/v1/User`
super.fullUrl = `${this.API_URL}/v3/User`
}
login(payload: { 'mobileDeviceId': string, 'userName': string, 'password': string }) {
return this.http.post(`${this.fullUrl}/login`, payload)
}
// https://sathorn.cathay-pay.com/api/v3/User/login
genToken() {
return this.http.get(`${environment.APIURL}/api/common/user_login/token`)