|
|
@@ -210,9 +210,9 @@ public class AuthorizationController {
|
|
|
* 网页微信授权登录
|
|
|
*/
|
|
|
@GetMapping("/wx/authLogin")
|
|
|
- public Result<String> wxAuthorize(Long sharedId, Integer dsType, Long popularizeId, String dsCode, String type, String callbackType, String callback) throws Exception {
|
|
|
+ public Result<String> wxAuthorize(Long sharedId, Integer dsType, Long popularizeId, String dsCode, String type, String callbackType, String callback, String returnUrl) throws Exception {
|
|
|
Long mappingId = SEQUENCE.nextId();
|
|
|
- String loginUrl = wxOpenPlatYHLXLoginConfig.getLoginUrl();
|
|
|
+ String loginUrl = Optional.ofNullable(returnUrl).orElse(wxOpenPlatYHLXLoginConfig.getLoginUrl());
|
|
|
if (StrUtil.isNotBlank(type)) {
|
|
|
loginUrl = String.format("https://nf.video/%s/web", type);
|
|
|
}
|
|
|
@@ -232,6 +232,7 @@ public class AuthorizationController {
|
|
|
* 微信网页统一授权登录
|
|
|
*/
|
|
|
@GetMapping("/wx/unified/login")
|
|
|
+ @Deprecated
|
|
|
public Result<String> wxUnifiedLogin(Long sharedId, Integer dsType, Long popularizeId, String dsCode, String type, String callbackType, String callback, String wt, String customId) throws Exception {
|
|
|
if (StrUtil.isEmpty(wt)) {
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
@@ -261,6 +262,7 @@ public class AuthorizationController {
|
|
|
* 网页微信授权后统一跳转
|
|
|
*/
|
|
|
@GetMapping("/wx/unified/baseRedirect")
|
|
|
+ @Deprecated
|
|
|
public void wxUnifiedRedirect(String code, String state, HttpServletResponse response) throws Exception {
|
|
|
// 转跳参数
|
|
|
String json = Codec.DoBase64.custom().setData(state).decodeAsText();
|