Commit ed730e6d authored by ibuler's avatar ibuler

[Update] For org

parent cd12feb0
......@@ -126,9 +126,9 @@ export class HttpService {
return this.http.get('/api/terminal/v1/sessions/' + token + '/replay');
}
get_replay_json(token: string) {
return this.http.get('/api/terminal/v2/sessions/' + token + '/replay');
}
// get_replay_json(token: string) {
// return this.http.get('/api/terminal/v2/sessions/' + token + '/replay');
// }
get_replay_data(src: string) {
return this.http.get(src);
......
......@@ -24,7 +24,7 @@ export class PagesReplayComponent implements OnInit {
.subscribe(params => {
token = params['token'];
});
this._http.get_replay_json(token)
this._http.get_replay(token)
.subscribe(
data => {
this.replay.type = data['type'];
......@@ -32,7 +32,6 @@ export class PagesReplayComponent implements OnInit {
this.replay.id = data['id'];
},
err => {
this._http.get_replay(token);
alert('没找到录像文件');
}
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment