fix(用户管理):新增用户unionId获取逻辑
This commit is contained in:
@@ -57,7 +57,7 @@ public interface UserService {
|
||||
* @param openId openId
|
||||
*/
|
||||
@GetMapping(value = "/users-anon/wxOpenId", params = {"openId","mobile"})
|
||||
SysUser findByWxOpenId(@RequestParam("openId") String openId, @RequestParam("mobile") String mobile);
|
||||
SysUser findByWxOpenId(@RequestParam("openId") String openId, @RequestParam("mobile") String mobile,@RequestParam("unionId") String unionId);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ public class UserServiceFallbackFactory implements FallbackFactory<UserService>
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysUser findByWxOpenId(String openId,String mobile) {
|
||||
public SysUser findByWxOpenId(String openId,String mobile,String unionId) {
|
||||
log.error("通过wxOpenId查询用户异常:{}", openId, throwable);
|
||||
return new SysUser();
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package com.central.common.model;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author zlt
|
||||
* 系统用户实体
|
||||
@@ -28,6 +28,7 @@ public class SysUser extends SuperEntity {
|
||||
private Boolean enabled;
|
||||
private String type;
|
||||
private String openId;
|
||||
private String unionId;
|
||||
private Long creatorId;
|
||||
@TableLogic
|
||||
private boolean isDel;
|
||||
|
||||
Reference in New Issue
Block a user