|
@@ -2,7 +2,7 @@ var ceshi = '';
|
|
// var ceshi = 'http://192.168.0.135:8105';
|
|
// var ceshi = 'http://192.168.0.135:8105';
|
|
// var ceshi = 'http://47.107.252.54:8105';
|
|
// var ceshi = 'http://47.107.252.54:8105';
|
|
|
|
|
|
-
|
|
|
|
|
|
+var token = window.localStorage.dcj_token
|
|
|
|
|
|
function reData(data,type) {
|
|
function reData(data,type) {
|
|
return JSON.stringify(data) == type ? null : data
|
|
return JSON.stringify(data) == type ? null : data
|
|
@@ -200,11 +200,11 @@ EditTools.prototype.saveAll = function () {
|
|
method: 'POST',
|
|
method: 'POST',
|
|
headers:{
|
|
headers:{
|
|
'Content-Type':'application/json',
|
|
'Content-Type':'application/json',
|
|
- // token:'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsInJvbGUiOm51bGwsIm1hbmFnZXIiOm51bGwsImlkIjoxLCJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNTk1Mjk1ODk1LCJpYXQiOjE1OTUyMDk0OTUsImp0aSI6IjM5NDFhZmJhLTM5YTItNDM4ZS1hMjdlLTg3YjVhZDYzOWI3NCJ9.x0lENGaof5zMTCfYtZ8DFVG3KCuoH02P7yH8B_JUy60'
|
|
|
|
|
|
+ token:token
|
|
},
|
|
},
|
|
dataType:'json',
|
|
dataType:'json',
|
|
contentType:'application/json',
|
|
contentType:'application/json',
|
|
- url: ceshi + '/api/scene/edit',
|
|
|
|
|
|
+ url: ceshi + '/manage/scene/edit',
|
|
data: JSON.stringify({
|
|
data: JSON.stringify({
|
|
sceneCode:number,
|
|
sceneCode:number,
|
|
hots: reData(hots,'{}') ,
|
|
hots: reData(hots,'{}') ,
|
|
@@ -1441,8 +1441,11 @@ function uploadFile(file, type, callback) {
|
|
formData.append('file', file)
|
|
formData.append('file', file)
|
|
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
- url: ceshi + '/api/scene/upload/'+number,
|
|
|
|
|
|
+ url: ceshi + '/manage/scene/upload/'+number,
|
|
data: formData,
|
|
data: formData,
|
|
|
|
+ headers:{
|
|
|
|
+ token:token
|
|
|
|
+ },
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
type: 'POST',
|
|
type: 'POST',
|
|
cache: false,//上传文件无需缓存
|
|
cache: false,//上传文件无需缓存
|
|
@@ -2755,9 +2758,10 @@ var panoVisiSet = {
|
|
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
method: 'POST',
|
|
method: 'POST',
|
|
- url: ceshi + '/api/scene/roamViable',
|
|
|
|
|
|
+ url: ceshi + '/manage/scene/roamViable',
|
|
headers:{
|
|
headers:{
|
|
- 'Content-Type':'application/json'
|
|
|
|
|
|
+ 'Content-Type':'application/json',
|
|
|
|
+ token:token
|
|
},
|
|
},
|
|
contentType:'application/json',
|
|
contentType:'application/json',
|
|
data: JSON.stringify({
|
|
data: JSON.stringify({
|