This commit is contained in:
henrydays 2019-03-19 03:02:22 +00:00
parent 1ca2695c3f
commit 9db3fa2471
1 changed files with 7 additions and 2 deletions

View File

@ -43,16 +43,21 @@ namespace api.Controllers
allCromos.ForEach(delegate(Cromos c){
for(int i=0;i<usrCromos.Length;i++){
Boolean found = false;
if(Int32.Parse(usrCromos[i])==c.Id){
soma+=c.pontos;
Cromos toAdd = new Cromos{Id = c.Id,Nome=c.Nome,DescMostrar=c.DescUnlocked,QRCode=c.QRCode,img=c.img, unlocked=true, websiteCromo=c.websiteCromo,pontos=c.pontos, logo=c.logo};
rList.Add(toAdd);
found=true;
}else{
}
if(!found){
Cromos toAdd = new Cromos{Id = c.Id,Nome=c.Nome,DescMostrar=c.DescLocked,QRCode=c.QRCode,img=c.img , unlocked=false, websiteCromo=c.websiteCromo,pontos=c.pontos};
rList.Add(toAdd);
}
}
});