Merge remote-tracking branch 'remotes/origin/hotfix/coupon'
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -8,6 +8,7 @@ var api = global.yoho.API; | @@ -8,6 +8,7 @@ var api = global.yoho.API; | ||
8 | const getPageInfo = (pageInfo) => { | 8 | const getPageInfo = (pageInfo) => { |
9 | var dest = {}; | 9 | var dest = {}; |
10 | 10 | ||
11 | + if (pageInfo && pageInfo.data) { | ||
11 | dest.shareTitle = pageInfo.data.shareTitle; | 12 | dest.shareTitle = pageInfo.data.shareTitle; |
12 | dest.shareDesc = pageInfo.data.shareContent; | 13 | dest.shareDesc = pageInfo.data.shareContent; |
13 | dest.shareImg = pageInfo.data.shareImgUrl; | 14 | dest.shareImg = pageInfo.data.shareImgUrl; |
@@ -30,9 +31,8 @@ const getPageInfo = (pageInfo) => { | @@ -30,9 +31,8 @@ const getPageInfo = (pageInfo) => { | ||
30 | dest.ended = true; | 31 | dest.ended = true; |
31 | } | 32 | } |
32 | dest.message = pageInfo.data.returnMsg; | 33 | dest.message = pageInfo.data.returnMsg; |
34 | + } | ||
33 | 35 | ||
34 | - // 清空变量,释放内存 | ||
35 | - pageInfo = {}; | ||
36 | return dest; | 36 | return dest; |
37 | }; | 37 | }; |
38 | 38 |
-
Please register or login to post a comment