fix
This commit is contained in:
@@ -1,69 +0,0 @@
|
||||
package com.starry.admin.modules.weichat.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.starry.common.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 微信用户对象 play_wx_user_info
|
||||
*
|
||||
* @author admin
|
||||
* @since 2024-04-07
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("play_wx_user_info")
|
||||
public class PlayWxUserInfoEntity extends BaseEntity<PlayWxUserInfoEntity> {
|
||||
|
||||
/**
|
||||
* UUID
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 用户的标识,对当前公众号唯一
|
||||
*/
|
||||
private String openid;
|
||||
|
||||
/**
|
||||
* 用户的标识,对当前公众号唯一
|
||||
*/
|
||||
private String unionid;
|
||||
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
private String nickname;
|
||||
|
||||
/**
|
||||
* 性别,值为1时是男性,值为2时是女性,值为0时是未知
|
||||
*/
|
||||
private Integer sex;
|
||||
|
||||
/**
|
||||
* 所在城市
|
||||
*/
|
||||
private String city;
|
||||
|
||||
/**
|
||||
* 所在国家
|
||||
*/
|
||||
private String country;
|
||||
|
||||
/**
|
||||
* 所在省份
|
||||
*/
|
||||
private String province;
|
||||
|
||||
/**
|
||||
* 所在省份
|
||||
*/
|
||||
private String avatar;
|
||||
|
||||
}
|
||||
@@ -67,6 +67,7 @@ public class WxOauthService {
|
||||
if (item == null) {
|
||||
PlayClerkUserInfoEntity entity = ConvertUtil.entityToVo(userInfo, PlayClerkUserInfoEntity.class);
|
||||
entity.setAvatar(userInfo.getHeadImgUrl());
|
||||
entity.setWeiChatAvatar(userInfo.getHeadImgUrl());
|
||||
entity.setId(IdUtils.getUuid());
|
||||
entity.setLevelId(playClerkLevelInfoService.getDefaultLevel().getId());
|
||||
clerkUserInfoService.create(entity);
|
||||
|
||||
Reference in New Issue
Block a user