[update] - chagne api
This commit is contained in:
@@ -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`)
|
||||
|
||||
Reference in New Issue
Block a user