...
|
...
|
@@ -110,11 +110,10 @@ export function getResourceInfoFailure(error) { |
|
|
export function getResourceInfo(callback) {
|
|
|
return (dispatch, getState) => {
|
|
|
let {app} = getState();
|
|
|
let contentCode = app.contentCode ? app.contentCode : '1f2e07cb63811680154ba693c954dd62';
|
|
|
dispatch(getResourceInfoRequest());
|
|
|
return new NewArrivalService(app.host).fetchResourceInfo(contentCode)
|
|
|
return new NewArrivalService(app.host).fetchResourceInfo(app.contentCode)
|
|
|
.then(json => {
|
|
|
let newJson = exposeResourceInfoData(json, contentCode);
|
|
|
let newJson = exposeResourceInfoData(json, app.contentCode);
|
|
|
|
|
|
for (let i = 0; i< json.length; i++) {
|
|
|
let item = json[i]
|
...
|
...
|
|