xiuli.gao 6 years ago
parent
commit
da4769226a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      shareBooks/wechatAddSuccess.html

+ 2 - 2
shareBooks/wechatAddSuccess.html

83
     	}
83
     	}
84
     	if(brr[i].indexOf('avatar') != -1){
84
     	if(brr[i].indexOf('avatar') != -1){
85
     		avatar = brr[i].split('=')[1];
85
     		avatar = brr[i].split('=')[1];
86
-    		avatar = decodeURI(avatar);
86
+    		avatar = decodeURIComponent(avatar);
87
     	}
87
     	}
88
     	if(brr[i].indexOf('userName') != -1){
88
     	if(brr[i].indexOf('userName') != -1){
89
     		user_name = brr[i].split('=')[1];
89
     		user_name = brr[i].split('=')[1];
99
     	}
99
     	}
100
     	if(brr[i].indexOf('appUrl') != -1){
100
     	if(brr[i].indexOf('appUrl') != -1){
101
     		appUrl = brr[i].split('=')[1];
101
     		appUrl = brr[i].split('=')[1];
102
-    		appUrl = decodeURI(appUrl);
102
+    		appUrl = decodeURIComponent(appUrl);
103
     	}
103
     	}
104
    }
104
    }
105
 	
105