解决网络异常问题

This commit is contained in:
尹吉欢
2018-07-06 11:33:41 +08:00
parent 7821edafed
commit 86c056ad7f
2 changed files with 8 additions and 4 deletions
+4
View File
@@ -4,6 +4,10 @@ function add_imgage(imageId,adPosition,device){
}).then(function(response){
if(response.data.status){
var h = response.data.data;
if (h == "" || h == null) {
return;
}
console.log(h);
if(typeof(h.imgUrl)!="undefined"&&h.imgUrl!=null&&$.trim(h.imgUrl)!=""){
$("#"+imageId).attr("src",h.imgUrl);
}