默认头像从随机改为由uid确定
This commit is contained in:
@@ -36,7 +36,7 @@ local db=setmetatable({},{__index=function(self,k)
|
|||||||
db_img[k]=
|
db_img[k]=
|
||||||
type(d.hash)=="string"and #d.hash>0 and fs.getInfo("cache/"..d.hash)and
|
type(d.hash)=="string"and #d.hash>0 and fs.getInfo("cache/"..d.hash)and
|
||||||
loadAvatar("cache/"..d.hash)or
|
loadAvatar("cache/"..d.hash)or
|
||||||
defaultAvatar[math.random(29)]
|
defaultAvatar[k%28+1]
|
||||||
return d
|
return d
|
||||||
end})
|
end})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user