Showing
1 changed file
with
1 additions
and
1 deletions
@@ -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); |
-
Please register or login to post a comment