From e499e9113e3bcf942f631625ff9bee6fccb6924c Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期三, 18 八月 2021 01:08:20 +0800
Subject: [PATCH] 优化掉员工方法

---
 service-front/src/main/java/com/java110/front/controller/wechat/StaffWechatAuthController.java |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/service-front/src/main/java/com/java110/front/controller/wechat/StaffWechatAuthController.java b/service-front/src/main/java/com/java110/front/controller/wechat/StaffWechatAuthController.java
old mode 100644
new mode 100755
index c09391e..567295e
--- a/service-front/src/main/java/com/java110/front/controller/wechat/StaffWechatAuthController.java
+++ b/service-front/src/main/java/com/java110/front/controller/wechat/StaffWechatAuthController.java
@@ -47,6 +47,7 @@
 
     /**
      * 寰俊鐧诲綍鎺ュ彛
+     * /app/loginStaffWechatAuth
      *
      * @param request
      */
@@ -65,19 +66,20 @@
 
     /**
      * 寰俊鍏紬鍙峰彿閴存潈
+     * /app/staffAuth
      *
      * @param request
      */
     @RequestMapping(path = "/staffAuth")
-    public ResponseEntity<String> staffAuth(@RequestParam String redirectUrl,
-                                            @RequestParam String errorUrl,
-                                            @RequestParam String loginFlag,
+    public ResponseEntity<String> staffAuth(@RequestParam(value = "communityId") String communityId,
+                                            @RequestParam(value = "staffId") String staffId,
+                                            @RequestParam(value = "storeId") String storeId,
+                                            @RequestParam(value = "appId") String appId,
                                             HttpServletRequest request,
                                             HttpServletResponse response) {
         IPageData pd = PageData.newInstance().builder("", "", "", "",
-                "login", "", "", "", request.getHeader("app-id")
-        );
-        return staffAuthSMOImpl.refreshToken(pd, redirectUrl, errorUrl, loginFlag, request, response);
+                "login", "", "", "", appId);
+        return staffAuthSMOImpl.refreshToken(pd, communityId, staffId, storeId, request, response);
 
     }
 

--
Gitblit v1.8.0