|
@ -1,7 +1,7 @@
|
1
|
1
|
/**
|
2
|
2
|
* 与客户端交互的基础API
|
3
|
3
|
*/
|
4
|
|
define(["jcl","base64","jcl","res/js/mobile/expand-mobile.js","biz/js/common/biz-mobile.js"],function(Wade,Base64,$) {
|
|
4
|
define(["jcl","base64","res/js/mobile/expand-mobile.js","biz/js/common/biz-mobile.js"],function(Wade,Base64) {
|
5
|
5
|
//终端类型,a为android,i为ios
|
6
|
6
|
var terminalType = window["TerminalType"];
|
7
|
7
|
var deviceType = (function(){
|
|
@ -185,10 +185,13 @@ define(["jcl","base64","jcl","res/js/mobile/expand-mobile.js","biz/js/common/biz
|
185
|
185
|
delete callbacks[callbackKey];
|
186
|
186
|
}
|
187
|
187
|
}
|
188
|
|
},error:function(callbackKey, message) {
|
|
188
|
},error:function(callbackKey, message, isEncode) {
|
189
|
189
|
if(typeof message == "undefined"){
|
190
|
190
|
return;
|
191
|
191
|
}
|
|
192
|
if(isEncode){
|
|
193
|
message = decodeURIComponent(message);
|
|
194
|
}
|
192
|
195
|
if (callbacks[callbackKey]) {
|
193
|
196
|
if (callbacks[callbackKey].error) {
|
194
|
197
|
if(typeof callbacks[callbackKey].error==="function"){
|