Commit 851cfb5f by 陶光胜

加日志

parent 25971837
......@@ -3,6 +3,7 @@ package com.gic.haoban.manage.web.controller;
import java.util.List;
import com.gic.haoban.common.utils.GlobalVar;
import com.gic.haoban.manage.web.anno.IgnoreLogin;
import com.gic.wechat.api.service.qywx.QywxSuiteApiService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
......@@ -32,6 +33,7 @@ public class ApplicationController extends WebBaseController{
}
@RequestMapping("get-auth-url")
@IgnoreLogin
public HaobanResponse getAuthUrl(){
String suiteId = GlobalVar.ctxPropertiesMap.get("suiteId");
log.info("应用ID:{}", suiteId);
......@@ -41,6 +43,7 @@ public class ApplicationController extends WebBaseController{
}
@RequestMapping("callback")
@IgnoreLogin
public HaobanResponse callback(String code){
String suiteId = GlobalVar.ctxPropertiesMap.get("suiteId");
String result = this.qywxSuiteApiService.corpAuth(suiteId, code);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment