Browse Source

集团增加临时测试地址

zhouy 2 years ago
parent
commit
2cb54798f7

+ 4 - 0
uas-office-qywx/src/main/java/com/usoftchina/uas/office/qywx/controller/QywxAuthController.java

@@ -83,6 +83,10 @@ public class QywxAuthController {
                 return new ModelAndView("/error");
             }
             QywxAgent uasAgent = agentService.findByCode("Uas");
+            QywxAgent uasAgentProd = agentService.findByCode("UasProd");
+            if(uasAgentProd !=null ){
+                uasAgent = uasAgentProd;
+            }
             redisTemplate.opsForValue().set(code, employee.getEm_id(), Duration.ofMinutes(1));
             response.sendRedirect(String.format("%sopen/authorize.action?token=%s&master=%s&url=%s",
                     uasAgent.getOuterUrl(), code, master == null ? "" : master, url));