feat: 修改密码增加密码登录选项
This commit is contained in:
@@ -122,14 +122,14 @@ func (l *StoreUserListLogic) StoreUserList(in *analysis.StoreUserListReq) (*anal
|
||||
StoreId: row.StoreId,
|
||||
Name: profile.Name,
|
||||
Nickname: profile.Name,
|
||||
Avatar: imageURL(profile.Avatar),
|
||||
Avatar: profile.Avatar,
|
||||
Mobile: decryptMobile(profile.Mobile),
|
||||
Gender: int(profile.Gender),
|
||||
Birthday: profile.Birthday,
|
||||
Age: utils.CalcAgeStr(profile.Birthday),
|
||||
}
|
||||
if logRow, ok := logs[row.UserId]; ok {
|
||||
item.Cover = imageURL(logRow.Cover)
|
||||
item.Cover = logRow.Cover
|
||||
item.DetectionNumber = logRow.DetectionNumber
|
||||
item.DetectionTime = logRow.DetectionTime.Format(detectionTimeLayout)
|
||||
}
|
||||
|
||||
@@ -45,7 +45,6 @@ func loadPassedStore(ctx context.Context, storeId int64) (*storepb.InfoResponse,
|
||||
}
|
||||
|
||||
func skinStore(info *storepb.InfoResponse) dao.StoreSkinInfo {
|
||||
img, _ := utils.BuildImageURL(info.Images).(string)
|
||||
return dao.StoreSkinInfo{
|
||||
Id: info.Id,
|
||||
StoreName: info.Name,
|
||||
@@ -53,7 +52,7 @@ func skinStore(info *storepb.InfoResponse) dao.StoreSkinInfo {
|
||||
StoreUserMobile: utils.DecryptPhoneReplace(info.UserMobile),
|
||||
District: info.DistrictIds,
|
||||
Address: regionAddress(info),
|
||||
StoreImg: img,
|
||||
StoreImg: info.Images,
|
||||
StoreContact: info.Contact,
|
||||
StoreContent: info.Content,
|
||||
OpenTime: info.OpenTime,
|
||||
@@ -75,14 +74,6 @@ func regionAddress(info *storepb.InfoResponse) string {
|
||||
return strings.Join(parts, "") + info.Address
|
||||
}
|
||||
|
||||
func imageURL(path string) string {
|
||||
if path == utils.StringEmpty {
|
||||
return utils.StringEmpty
|
||||
}
|
||||
url, _ := utils.BuildImageURL(path).(string)
|
||||
return url
|
||||
}
|
||||
|
||||
func dateOnly(value string) string {
|
||||
if len(value) >= len("2006-01-02") {
|
||||
return value[:len("2006-01-02")]
|
||||
|
||||
Reference in New Issue
Block a user