瀏覽代碼

更换鉴权接口

dengsixing 9 月之前
父節點
當前提交
38c346ad83

+ 7 - 1
src/main/java/com/fdkankan/scene/Interceptor/CheckViewBizAuthAspect.java

@@ -197,7 +197,13 @@ public class CheckViewBizAuthAspect {
 					headers.clear();
 					headers.put("userName", userName);
 					headers.put("password", Base64Converter.decode(password));
-					checkNumAuth = myClient.checkNumAuth(url, headers);
+
+					Map<String, String> checkNumAuthParams = new HashMap<>();
+					checkNumAuthParams.put("num", num);
+					checkNumAuthParams.put("userName", userName);
+					checkNumAuthParams.put("password", Base64Converter.decode(password));
+					String url2 = host.concat("/service/manage/inner/checkNumAuth");
+					checkNumAuth = myClient.checkNumAuthPost(url2, checkNumAuthParams);
 					if(checkNumAuth.getCode() == ServerCode.SUCCESS.code()){
 						data = checkNumAuth.getData();
 					}

+ 4 - 4
src/main/java/com/fdkankan/scene/httpclient/MyClient.java

@@ -1,10 +1,7 @@
 package com.fdkankan.scene.httpclient;
 
 
-import com.dtflys.forest.annotation.Get;
-import com.dtflys.forest.annotation.Header;
-import com.dtflys.forest.annotation.Post;
-import com.dtflys.forest.annotation.Var;
+import com.dtflys.forest.annotation.*;
 import com.dtflys.forest.callback.OnProgress;
 import com.dtflys.forest.extensions.DownloadFile;
 import com.fdkankan.scene.vo.CheckNumAuthVo;
@@ -37,4 +34,7 @@ public interface MyClient {
     @Get(url = "${url}")
     ResultData<CheckNumAuthVo> checkNumAuth(@Var("url") String url, @Header Map<String, Object> headerMap);
 
+    @Post(url = "${url}")
+    ResultData<CheckNumAuthVo> checkNumAuthPost(@Var("url") String url, @JSONBody Map<String, String> params);
+
 }