Authored by lixia.zhang

接口返回拼接message,review by 王海元

... ... @@ -121,7 +121,7 @@ export default class NativeRequest {
async _parseResponse(response) {
let code = response && response.code ? response.code : 0;
if (code == 200) {
if (response.message != '' && response.data) {
if (response.message && response.message != '' && response.data && typeof(response.data) =="object") {
response.data.message = response.message;
}
return response.data;
... ...
... ... @@ -76,7 +76,7 @@ export default class DetailService {
url: '',
body: {
method: 'app.favorite.isFavoriteNew',
id,
id,
}
})
.then((json) => {
... ...