Commit 478f96b2 by Sweet Zhang

暂存录屏

parent 11b154cd
......@@ -796,19 +796,17 @@ export class MyService {
/**
* 可回溯录屏接口
*/
rrwebInfo(){
const url = this.ydapi + '/customerTrackVideo/rrwebInfo';
const serialsNo = sessionStorage.getItem('lifeRecordSerialsNo') ? sessionStorage.getItem('lifeRecordSerialsNo') :uuid.v4();
sessionStorage.setItem('lifeRecordSerialsNo',serialsNo)
rrwebInfo(events,pageInfo){
const param = {
serialsNo:serialsNo,
token:'',
pageType:'',
pageName:'',
customerId:'',
data:'',
url: ""
}
return this.http.post(url, JSON.stringify(param));
serialsNo:sessionStorage.getItem('lifeSerialsNo'),
customerId:JSON.parse(localStorage.getItem('lifeCustomerInfo')) ? JSON.parse(localStorage.getItem('lifeCustomerInfo')).customerId : '',
token:localStorage.getItem('lifeToken'),
pageType:pageInfo.type,
pageName:pageInfo.name,
url:location.href,
data:JSON.stringify(events)
};
const url = this.ydapi + "/customerTrackVideo/rrwebInfo"
return this.http.post(url,JSON.stringify(param))
}
}
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