edit
This commit is contained in:
@ -10,7 +10,7 @@ import { Observable, Subject } from 'rxjs';
|
||||
import { BaseService } from '../core/base.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class EACaptchaService extends BaseService {
|
||||
// 通过手机号发送短信验证码
|
||||
@ -26,7 +26,7 @@ export class EACaptchaService extends BaseService {
|
||||
$api_captcha_sms_code = `/scce/pbc/pbc/verification/getSMVerificationCodeByToken`;
|
||||
|
||||
// 获取应用租户的管理员用户发送验证码
|
||||
$api_getAppLesseeAdminSMVerificationCode = `/chiauserBasicInfo/getAppLesseeAdminSMVerificationCode`;
|
||||
$api_getAppLesseeAdminSMVerificationCode = `/api/mdc/cuc/userAuthority/adminSmverificationCode?_allow_badcode=true`;
|
||||
|
||||
/**
|
||||
* 根据当前登录用户绑定的手机号码获取短信验证码
|
||||
@ -34,12 +34,7 @@ export class EACaptchaService extends BaseService {
|
||||
getCaptchaBySMSNoPhone(): Observable<any> {
|
||||
return this.request(this.$api_captcha_sms_code, { appId: this.envSrv.getEnvironment().appId }, 'POST', true, 'FORM');
|
||||
}
|
||||
/**
|
||||
* 获取应用租户的管理员用户发送验证码
|
||||
*/
|
||||
getAppLesseeAdminSMVerificationCode(): Observable<any> {
|
||||
return this.request(this.$api_getAppLesseeAdminSMVerificationCode, { appId: this.envSrv.getEnvironment().appId }, 'POST', true, 'FORM');
|
||||
}
|
||||
|
||||
constructor(public injector: Injector) {
|
||||
super(injector);
|
||||
}
|
||||
@ -54,7 +49,7 @@ export class EACaptchaService extends BaseService {
|
||||
{ appId: this.envSrv.getEnvironment()?.appId, phoneNumber: mobile },
|
||||
'POST',
|
||||
true,
|
||||
'FORM',
|
||||
'FORM'
|
||||
);
|
||||
}
|
||||
|
||||
@ -70,7 +65,7 @@ export class EACaptchaService extends BaseService {
|
||||
{ appId: this.envSrv.getEnvironment()?.appId, phoneNumber: mobile, user: mobile, validate },
|
||||
'POST',
|
||||
true,
|
||||
'FORM',
|
||||
'FORM'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user