Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tower1229 committed Mar 21, 2019
1 parent e103e52 commit 5aefae3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions sdk/core.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
app JS SDK
Version:2.4.0
update: 移除app.ajax错误检查
date:2018-04-27
Version:2.4.1
update: openPopover支持bgColor设置
date:2019-03-21
*
/*! Sea.js 2.2.1 | seajs.org/LICENSE.md */
Expand Down Expand Up @@ -940,7 +940,7 @@ var apputil = (function(document, undefined) {
useWKWebView: true,
hScrollBarEnabled: false,
pageParam: $.isPlainObject(config.param) ? config.param : {},
bgColor: appcfg.set.bgColor,
bgColor: config.bgColor || appcfg.set.bgColor,
bounces: !!config.bounce,
overScrollMode: 'scrolls'
});
Expand Down
12 changes: 6 additions & 6 deletions sdk/modules/upload.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* name: upload.js
* version: v0.5.1
* update: add headers
* date: 2018-02-01
* version: v0.5.2
* update: success接收服务端数据;error接收异常信息
* date: 2019-03-21
*/
define('upload', function(require, exports, module) {
'use strict';
Expand Down Expand Up @@ -57,16 +57,16 @@ define('upload', function(require, exports, module) {
break;
case 1:
try {
opt.success(ret.body.path);
opt.success(ret.body);
} catch (e) {
console.log(JSON.stringify(ret.body));
}
break;
case 2:
opt.error();
opt.error(ret);
break;
default:
opt.onCreateError();
opt.onCreateError(ret, err);
break;
}
} else if (err) {
Expand Down

0 comments on commit 5aefae3

Please sign in to comment.