[update] - chagne api
This commit is contained in:
@@ -12,13 +12,13 @@ export class CathayAuthService extends BaseService {
|
|||||||
public http: HttpClient
|
public http: HttpClient
|
||||||
) {
|
) {
|
||||||
super('', http)
|
super('', http)
|
||||||
super.fullUrl = `${this.API_URL}/v1/User`
|
super.fullUrl = `${this.API_URL}/v3/User`
|
||||||
}
|
}
|
||||||
|
|
||||||
login(payload: { 'mobileDeviceId': string, 'userName': string, 'password': string }) {
|
login(payload: { 'mobileDeviceId': string, 'userName': string, 'password': string }) {
|
||||||
return this.http.post(`${this.fullUrl}/login`, payload)
|
return this.http.post(`${this.fullUrl}/login`, payload)
|
||||||
}
|
}
|
||||||
|
// https://sathorn.cathay-pay.com/api/v3/User/login
|
||||||
|
|
||||||
genToken() {
|
genToken() {
|
||||||
return this.http.get(`${environment.APIURL}/api/common/user_login/token`)
|
return this.http.get(`${environment.APIURL}/api/common/user_login/token`)
|
||||||
|
|||||||
Reference in New Issue
Block a user