bug fixed
This commit is contained in:
parent
2da4bb69f7
commit
038dfcf6df
|
@ -254,16 +254,22 @@ export class CommonApiService {
|
|||
public massTalkSave(
|
||||
req: MassTalkSaveRequest
|
||||
): Observable<MassTalkSaveResponse> {
|
||||
return this.httpClient
|
||||
.post<any>(
|
||||
this.urls.massTalkSave,
|
||||
{},
|
||||
{
|
||||
params: encodeMassTalkSave(req),
|
||||
responseType: 'text' as 'json'
|
||||
const httpReq = new HttpRequest(
|
||||
'POST',
|
||||
this.urls.massTalkSave,
|
||||
encodeMassTalkSave(req),
|
||||
{ reportProgress: true, responseType: 'text' as 'json' }
|
||||
);
|
||||
|
||||
return this.httpClient.request(httpReq).pipe(
|
||||
filter(event => {
|
||||
if (event instanceof HttpResponse) {
|
||||
return true;
|
||||
}
|
||||
)
|
||||
.pipe(map(res => decodeMassTalkSave(res)));
|
||||
return false;
|
||||
}),
|
||||
map(res => decodeMassTalkSave((res as HttpResponse<any>).body))
|
||||
);
|
||||
}
|
||||
|
||||
public transMassTalkDownload(
|
||||
|
|
Loading…
Reference in New Issue
Block a user