fix[用户中心]:优化登录等录逻辑
This commit is contained in:
@@ -56,8 +56,8 @@ public interface UserService {
|
||||
*
|
||||
* @param openId openId
|
||||
*/
|
||||
@GetMapping(value = "/users-anon/wxOpenId", params = "openId")
|
||||
SysUser findByWxOpenId(@RequestParam("openId") String openId);
|
||||
@GetMapping(value = "/users-anon/wxOpenId", params = {"openId","mobile"})
|
||||
SysUser findByWxOpenId(@RequestParam("openId") String openId, @RequestParam("mobile") String mobile);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
+2
-2
@@ -3,8 +3,8 @@ package com.central.common.feign.fallback;
|
||||
import com.central.common.feign.UserService;
|
||||
import com.central.common.model.SysRole;
|
||||
import com.central.common.model.SysUser;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
@@ -45,7 +45,7 @@ public class UserServiceFallbackFactory implements FallbackFactory<UserService>
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysUser findByWxOpenId(String openId) {
|
||||
public SysUser findByWxOpenId(String openId,String mobile) {
|
||||
log.error("通过wxOpenId查询用户异常:{}", openId, throwable);
|
||||
return new SysUser();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user