deason 7 years ago
parent
commit
97b59765be

+ 10 - 2
src/main/java/cn/com/qmth/examcloud/app/service/UserAuthService.java

@@ -65,9 +65,13 @@ public class UserAuthService {
 
     public Result logout(String key, String token) throws Exception {
         final String requestUrl = propertyService.getUserAuthUrl() + "/api/ecs_core/auth/logout";
+        RequestBody formBody = new FormBody.Builder()
+                .add(PARAM_KEY, key)
+                .add(PARAM_TOKEN, token)
+                .build();
         Request request = new Request.Builder()
                 .url(requestUrl)
-                .get()
+                .post(formBody)
                 .addHeader(PARAM_KEY, key)
                 .addHeader(PARAM_TOKEN, token)
                 .build();
@@ -78,9 +82,13 @@ public class UserAuthService {
 
     public Result getUserInfo(String key, String token) throws Exception {
         final String requestUrl = propertyService.getUserAuthUrl() + "/api/ecs_core/auth/getLoginUser";
+        RequestBody formBody = new FormBody.Builder()
+                .add(PARAM_KEY, key)
+                .add(PARAM_TOKEN, token)
+                .build();
         Request request = new Request.Builder()
                 .url(requestUrl)
-                .get()
+                .post(formBody)
                 .addHeader(PARAM_KEY, key)
                 .addHeader(PARAM_TOKEN, token)
                 .build();

+ 3 - 2
src/main/resources/static/doc.html

@@ -159,8 +159,9 @@
 <script type="text/html" id="contentScript">
     <div style="padding: 10px 0;border-bottom: 1px dashed #ccc;height: 50px;vertical-align: middle;line-height: 30px;">
         <div style="    float: left;width: 90%;font-size: 20px;">{{summary}}</div>
-        <div style="float: right;width: 10%;text-align: right;vertical-align: top;">
-            <a id="copyDocHref" style="cursor: pointer;text-decoration: none;" href="javascript:void(0);">复制文档</a></div>
+        <!--<div style="float: right;width: 10%;text-align: right;vertical-align: top;">
+            <a id="copyDocHref" style="cursor: pointer;text-decoration: none;" href="javascript:void(0);">复制文档</a>
+        </div>-->
     </div>
     <div class="swbu-main" itemprop="articleBody">
         <div id="contentDoc"></div>