Authored by htoooth

fix image

@@ -372,7 +372,7 @@ class YoLuckService extends global.yoho.BaseModel { @@ -372,7 +372,7 @@ class YoLuckService extends global.yoho.BaseModel {
372 372
373 async getResourceCode(params) { 373 async getResourceCode(params) {
374 const result = await this.api._getResourceCode(params); 374 const result = await this.api._getResourceCode(params);
375 - const url = _.get(result, '[0].data.list[0]', ''); 375 + const url = _.get(result, '[0].data.list[0]', {});
376 376
377 url.width = _.get(result, '[0].data.imageWidth', 0); 377 url.width = _.get(result, '[0].data.imageWidth', 0);
378 url.height = _.get(result, '[0].data.imageHeight', 0); 378 url.height = _.get(result, '[0].data.imageHeight', 0);