(html)
| 49 | |
| 50 | // 解析 app 本体价格 |
| 51 | function parseAppBodyPrice(html) { |
| 52 | const priceElement = html.match(/<li class="inline-list__item inline-list__item--bulleted app-header__list__item--price">([\s\S]*?)<\/li>/); |
| 53 | const price = priceElement ? priceElement[1].trim() : null; |
| 54 | console.log(`解析本体价格: ${price}`); |
| 55 | return price; |
| 56 | } |
| 57 | |
| 58 | // 解析 app 内购项目 |
| 59 | function parseAppInAppPurchases(html) { |