RequestData () {
let urllist = ["5s0","5s1","5s2","5s3","5s4"]
for(let i = 0 ; i < urllist.length ; iPP){
let URL = theme.leancloud+"api/client/getAppPhoto?photoName="+urllist[i];
let map={
method:"GET"
}
let privateHeaders = {
"Content-Type":"application/json;charset=utf-8"
}
map.headers=privateHeaders
fetch(URL,map).then(
(res) => {
res.json().then(
(result)=>{
if(result.status=="success"){
this.setState({
photo:result.message
})
}else{
this.setState({
photo:result.message
})
}
}
)
}
).catch(
(error) => {
console.log(error)
}
)
}
}