使用设备Id+通道Id作为session的识别标识,解决点播异常时无法释放session的问题
This commit is contained in:
@@ -216,12 +216,12 @@ export default {
|
||||
var that = this;
|
||||
this.$axios({
|
||||
method: 'get',
|
||||
url: '/api/play/stop/' + itemData.streamId
|
||||
url: '/api/play/stop/' + this.deviceId + "/" + itemData.channelId
|
||||
}).then(function (res) {
|
||||
console.log(JSON.stringify(res));
|
||||
that.initData();
|
||||
}).catch(function (error) {
|
||||
if (error.response.status == 402) { // 已经停止过
|
||||
if (error.response.status === 402) { // 已经停止过
|
||||
that.initData();
|
||||
}else {
|
||||
console.log(error)
|
||||
@@ -253,7 +253,7 @@ export default {
|
||||
|
||||
this.$axios({
|
||||
method: 'get',
|
||||
url:`/api/device/query/sub_channels/${this.deviceId}/${this.parentChannelId}/channels`,
|
||||
url:`/api/device/query/sub_channels/${this.deviceId}/${this.parentChannelId}/channels`,
|
||||
params: {
|
||||
page: that.currentPage,
|
||||
count: that.count,
|
||||
|
||||
@@ -415,7 +415,7 @@ export default {
|
||||
this.videoUrl = '';
|
||||
this.$axios({
|
||||
method: 'get',
|
||||
url: '/api/playback/stop/' + this.streamId
|
||||
url: '/api/playback/stop/' + this.deviceId + "/" + this.channelId
|
||||
}).then(function (res) {
|
||||
if (callback) callback()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user