This commit is contained in:
zpc 2025-09-07 22:52:02 +08:00
parent cc76306215
commit 9c0743a17e
3 changed files with 6 additions and 5 deletions

View File

@ -50,9 +50,10 @@ namespace CoreCms.Net.Configuration
/// 默认图
/// </summary>
public const string ShopDefaultImage = "shopDefaultImage";
/// <summary>
/// 默认
/// 默认用户头像
/// </summary>
public const string UserDefaultImage = "userDefaultImage";
/// <summary>

View File

@ -531,7 +531,7 @@ namespace CoreCms.Net.Services
else
{
var allConfigs = await _settingServices.GetConfigDictionaries();
var defaultImage = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.ShopDefaultImage);
var defaultImage = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.UserDefaultImage);
userInfo.avatarImage = defaultImage;
}

View File

@ -214,7 +214,6 @@ namespace CoreCms.Net.Web.WebApi.Controllers
jm.msg = "用户信息获取失败";
return jm;
}
//DecodedPhoneNumber phoneNumber;
string phoneNumber = "";
try
{
@ -237,12 +236,13 @@ namespace CoreCms.Net.Web.WebApi.Controllers
NLogUtil.WriteAll(LogLevel.Error, LogType.Web, "小程序接口", "微信小程序授权拉取手机号码", ex);
return jm;
}
Random rnd = new Random();
var data = new FMWxAccountCreate
{
mobile = phoneNumber,
invitecode = entity.invitecode,
sessionAuthId = entity.sessionAuthId
sessionAuthId = entity.sessionAuthId,
nickname = "微信用户" + rnd.Next(1000, 9999),
};
jm = await _userServices.SmsLogin(data);