|
@@ -140,9 +140,9 @@
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
- <div class="wrap">
|
|
|
+ <div class="wraps">
|
|
|
|
|
|
- <div class="content">
|
|
|
+ <div class="contents">
|
|
|
<div class="content-inner" style="padding: 0;">
|
|
|
<div class="cloudDiv">
|
|
|
<!-- <div class="cloud-copyright">Copyright © Jason Davies</div> -->
|
|
@@ -367,6 +367,14 @@
|
|
|
var searchType = null;
|
|
|
var old_searchType = null
|
|
|
var W_stopWordStatus = null
|
|
|
+ var prefix = 'HM21St_User_Token='
|
|
|
+ var start = document.cookie.indexOf(prefix)
|
|
|
+ var end = document.cookie.indexOf(";", start + prefix.length)
|
|
|
+ if (end == -1) {
|
|
|
+ end = document.cookie.length;
|
|
|
+ }
|
|
|
+ var AccessToken = JSON.parse(unescape(document.cookie.substring(start + prefix.length, end))).access_token
|
|
|
+
|
|
|
arr.forEach((item) => {
|
|
|
if (item.split("=")[0] == "articleId") {
|
|
|
articleId = item.split("=")[1];
|
|
@@ -376,7 +384,8 @@
|
|
|
old_searchType = item.split("=")[1];
|
|
|
}
|
|
|
});
|
|
|
- // 如果是词汇 默认选中词
|
|
|
+ console.log(AccessToken)
|
|
|
+ // 如果是词汇 默认选中词
|
|
|
if (old_searchType == 2) {
|
|
|
$(".danwei div").removeClass("radio-active");
|
|
|
$(".danwei").find("div").eq(1).addClass("radio-active")
|
|
@@ -412,7 +421,7 @@
|
|
|
stopWordStatus: W_stopWordStatus,
|
|
|
}
|
|
|
$.ajax({
|
|
|
- url: window.location.href.substring(0, window.location.href.indexOf('/#/')) + "/PaperServer/Client/Article/CalcArtWordCloud",
|
|
|
+ url: window.location.href.substring(0, window.location.href.indexOf('/#/')) + "/PaperServer/Client/Article/CalcArtWordCloud?AccessToken=" + AccessToken,
|
|
|
// url: "/i21st-newspaper-management-test/api/article/detail/wordCloud",
|
|
|
data: JSON.stringify(data),
|
|
|
contentType: "application/json",
|
|
@@ -525,7 +534,7 @@
|
|
|
|
|
|
function initStopWords() {
|
|
|
$.ajax({
|
|
|
- url: window.location.href.substring(0, window.location.href.indexOf('/#/')) + "/PaperServer/Client/Article/CalcArtWordCloud_stopWordList",
|
|
|
+ url: window.location.href.substring(0, window.location.href.indexOf('/#/')) + "/PaperServer/Client/Article/CalcArtWordCloud_stopWordList?AccessToken=" + AccessToken,
|
|
|
// url: "/i21st-newspaper-management-test/api/user/stopVocab/get",
|
|
|
data: JSON.stringify({}),
|
|
|
contentType: "application/json;charset=UTF-8",
|
|
@@ -807,7 +816,7 @@
|
|
|
function updatawordData() {
|
|
|
let userStopVocab = JSON.parse(JSON.stringify(oldstopWordList));
|
|
|
$.ajax({
|
|
|
- url: window.location.href.substring(0, window.location.href.indexOf('/#/')) + "/PaperServer/Client/Article/CalcArtWordCloud_stopWordSave",
|
|
|
+ url: window.location.href.substring(0, window.location.href.indexOf('/#/')) + "/PaperServer/Client/Article/CalcArtWordCloud_stopWordSave?AccessToken=" + AccessToken,
|
|
|
// url: "/i21st-newspaper-management-test/api/user/stopVocab/update",
|
|
|
data: JSON.stringify({
|
|
|
tenantId: "",
|