java110
2021-09-03 cddcf22a61489ee9c2dfee169d817ccd66f95430
service-front/src/main/java/com/java110/front/controller/wechat/StaffWechatAuthController.java
old mode 100644 new mode 100755
@@ -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);
    }