|
@@ -1,7 +1,11 @@
|
|
|
package org.fouram.controller;
|
|
|
|
|
|
-import com.google.common.collect.Maps;
|
|
|
-import me.chanjar.weixin.cp.bean.WxCpOauth2UserInfo;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+import javax.servlet.http.HttpSession;
|
|
|
+
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.fouram.constants.WebConstants;
|
|
|
import org.fouram.core.base.controller.BaseController;
|
|
@@ -12,16 +16,14 @@ import org.fouram.core.util.ConfConfig;
|
|
|
import org.fouram.core.util.LoggerUtil;
|
|
|
import org.fouram.service.SapOrgService;
|
|
|
import org.fouram.service.SapUserService;
|
|
|
-import org.fouram.service.TaskService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
-import javax.servlet.http.HttpServletRequest;
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
-import javax.servlet.http.HttpSession;
|
|
|
-import java.util.Map;
|
|
|
+import com.google.common.collect.Maps;
|
|
|
+
|
|
|
+import me.chanjar.weixin.cp.bean.WxCpOauth2UserInfo;
|
|
|
|
|
|
@Controller
|
|
|
@RequestMapping(value = "/API")
|
|
@@ -32,9 +34,9 @@ public class ApiController extends BaseController {
|
|
|
@Autowired
|
|
|
private SapUserService sapUserService;
|
|
|
@Autowired
|
|
|
- private TaskService taskService;
|
|
|
-
|
|
|
private static final String TOKEN="UserId";
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 获取授权url
|
|
|
* @return
|