update 优化 前端参数传参方式

feature/model
疯狂的狮子Li 1 year ago
parent 7accca933f
commit 02423ec320

@ -157,8 +157,8 @@ public class AuthController {
* @return * @return
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@GetMapping("/social-login/{source}") @GetMapping("/social-login")
public R<String> socialLogin(@PathVariable("source") String source, AuthCallback callback) { public R<String> socialLogin(String source, AuthCallback callback) {
SocialLoginConfigProperties obj = socialProperties.getType().get(source); SocialLoginConfigProperties obj = socialProperties.getType().get(source);
if (ObjectUtil.isNull(obj)) { if (ObjectUtil.isNull(obj)) {
return R.fail(source + "平台账号暂不支持"); return R.fail(source + "平台账号暂不支持");

Loading…
Cancel
Save