|
|
@@ -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));
|