mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-27 13:34:30 -04:00
Refactor PHP request handling and return codes.
This commit is contained in:
parent
e275ecac07
commit
6ad53ec2aa
5 changed files with 50 additions and 53 deletions
|
@ -27,7 +27,7 @@ modulejs.define('ext/preview-img', ['_', '$', 'core/event', 'core/server', 'core
|
|||
height: 0
|
||||
}, function (json) {
|
||||
|
||||
callback(json && json.code === 0 ? json.absHref : null);
|
||||
callback(json && json.code === 'RC_SUCCESS' ? json.absHref : null);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue