Authored by 张文文

数据曝光问题修复 reviewd by 朱傲哲

@@ -54,6 +54,7 @@ export default class ContentNotifyListCell extends Component { @@ -54,6 +54,7 @@ export default class ContentNotifyListCell extends Component {
54 let params = { 54 let params = {
55 action: 'go.h5', 55 action: 'go.h5',
56 params: { 56 params: {
  57 + title:'有货社区发帖规范',
57 url:data.link, 58 url:data.link,
58 } 59 }
59 } 60 }
@@ -25,7 +25,8 @@ export default function appReducer(state = initialState, action) { @@ -25,7 +25,8 @@ export default function appReducer(state = initialState, action) {
25 case SET_SERVICE_HOST: 25 case SET_SERVICE_HOST:
26 return state.set('serviceHost', action.payload); 26 return state.set('serviceHost', action.payload);
27 case SET_CONTENT_CODE: 27 case SET_CONTENT_CODE:
28 - return state.set('contentCode', action.payload); 28 + let contentCode = action.payload ? action.payload : '1f2e07cb63811680154ba693c954dd62';
  29 + return state.set('contentCode', contentCode);
29 } 30 }
30 31
31 return state; 32 return state;
@@ -110,11 +110,10 @@ export function getResourceInfoFailure(error) { @@ -110,11 +110,10 @@ export function getResourceInfoFailure(error) {
110 export function getResourceInfo(callback) { 110 export function getResourceInfo(callback) {
111 return (dispatch, getState) => { 111 return (dispatch, getState) => {
112 let {app} = getState(); 112 let {app} = getState();
113 - let contentCode = app.contentCode ? app.contentCode : '1f2e07cb63811680154ba693c954dd62';  
114 dispatch(getResourceInfoRequest()); 113 dispatch(getResourceInfoRequest());
115 - return new NewArrivalService(app.host).fetchResourceInfo(contentCode) 114 + return new NewArrivalService(app.host).fetchResourceInfo(app.contentCode)
116 .then(json => { 115 .then(json => {
117 - let newJson = exposeResourceInfoData(json, contentCode); 116 + let newJson = exposeResourceInfoData(json, app.contentCode);
118 117
119 for (let i = 0; i< json.length; i++) { 118 for (let i = 0; i< json.length; i++) {
120 let item = json[i] 119 let item = json[i]