TA的每日心情 | 擦汗 前天 08:59 |
---|
签到天数: 532 天 [LV.9]以坛为家II
版主
- 积分
- 1215
|
超星协议基本没什么需要操作的,唯一稍微有点加密的参数就是表单中的enc
定位js文件中enc所在的位置
- var sendLog_ = function(player, isdrag, currentTimeSec, callback) {
- if (!params.reportUrl) {
- return
- }
- if (params.isFiled == 1 || params.state == 1) {
- return
- }
- var format = "[{0}][{1}][{2}][{3}][{4}][{5}][{6}][{7}]"
- , clipTime = (params.startTime || "0") + "_" + (params.endTime || params.duration);
- var enc = Ext.String.format(format, params.clazzId, params.userid, params.jobid || "", params.objectId, currentTimeSec * 1000, "d_yHJ!$pdA~5", params.duration * 1000, clipTime);
- var rurl = [params.reportUrl, "/", params.dtoken, "?clazzId=", params.clazzId, "&playingTime=", currentTimeSec, "&duration=", params.duration, "&clipTime=", clipTime, "&objectId=", params.objectId, "&otherInfo=", params.otherInfo, "&jobid=", params.jobid, "&userid=", params.userid, "&isdrag=", isdrag, "&view=pc", "&enc=", md5(enc), "&rt=", params.rt, "&dtype=Video", "&_t=", new Date().getTime()].join("");
- logFunc(player, rurl, callback)
- };
复制代码
js文件中的代码如上,取enc:
- var enc = Ext.String.format(format, params.clazzId, params.userid, params.jobid || "", params.objectId, currentTimeSec * 1000, "d_yHJ!$pdA~5", params.duration * 1000, clipTime);
复制代码
pyhton代码:
|
-
查看全部评分
总评分:好评 +2
贡献 +1
|