|
@@ -267,6 +267,7 @@ public class AuthorizationController {
|
|
|
public Result<String> wxAuthorize(Long sharedId, Integer dsType, Long popularizeId, String dsCode, String type, String callbackType, String callback, String returnUrl, String customId, Integer cmt) throws Exception {
|
|
public Result<String> wxAuthorize(Long sharedId, Integer dsType, Long popularizeId, String dsCode, String type, String callbackType, String callback, String returnUrl, String customId, Integer cmt) throws Exception {
|
|
|
Long mappingId = SEQUENCE.nextId();
|
|
Long mappingId = SEQUENCE.nextId();
|
|
|
String loginUrl = Optional.ofNullable(returnUrl).orElse(wxOpenPlatYHLXLoginConfig.getLoginUrl());
|
|
String loginUrl = Optional.ofNullable(returnUrl).orElse(wxOpenPlatYHLXLoginConfig.getLoginUrl());
|
|
|
|
|
+ log.info("网页微信授权成功返回地址:{}", loginUrl);
|
|
|
if (StrUtil.isNotBlank(type)) {
|
|
if (StrUtil.isNotBlank(type)) {
|
|
|
loginUrl = String.format("https://nf.video/%s/web", type);
|
|
loginUrl = String.format("https://nf.video/%s/web", type);
|
|
|
}
|
|
}
|
|
@@ -555,6 +556,7 @@ public class AuthorizationController {
|
|
|
cookie.setPath("/");
|
|
cookie.setPath("/");
|
|
|
response.addCookie(userInfo);
|
|
response.addCookie(userInfo);
|
|
|
String url = redisService.getStr(re.getMappingId().toString());
|
|
String url = redisService.getStr(re.getMappingId().toString());
|
|
|
|
|
+ log.info("授权成功跳转地址:{}", url);
|
|
|
//获客助手 加粉深度回传拼接广告标识.
|
|
//获客助手 加粉深度回传拼接广告标识.
|
|
|
try {
|
|
try {
|
|
|
url = appendCorpAcquistion(userinfo, url);
|
|
url = appendCorpAcquistion(userinfo, url);
|