|
@@ -15,8 +15,8 @@ const Plugin = {
|
|
if (!_.isFunction(okText) && _.isObject(okText) && okText != null) {
|
|
if (!_.isFunction(okText) && _.isObject(okText) && okText != null) {
|
|
({ okText: _okText, errText: _errText } = okText);
|
|
({ okText: _okText, errText: _errText } = okText);
|
|
}
|
|
}
|
|
- const { errcode = 200, errmsg } = res || {};
|
|
|
|
- if (errcode === 200) {
|
|
|
|
|
|
+ const { errcode = 0, errmsg } = res || {};
|
|
|
|
+ if (errcode === 0) {
|
|
if (_.isFunction(_okText)) {
|
|
if (_.isFunction(_okText)) {
|
|
return _okText();
|
|
return _okText();
|
|
}
|
|
}
|