wgt-node-utils 1.2.15 → 1.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -135,12 +135,13 @@
135
135
  ##### 返回格式
136
136
  ```javascript
137
137
  return {
138
- id: item.game_id,
139
- icon: item.base_icon,
140
- path: item.game_path,
141
- name: item.game_name,
142
- icon_video: item.icon_video,
143
- new: item.new ? true : undefined // 将false转换为undefined, 用于节省ssr生成的文本长度
138
+ game_category: item.game_category,
139
+ id: item.game_id,
140
+ icon: item.base_icon,
141
+ path: item.game_path,
142
+ name: item.game_name,
143
+ icon_video: item.icon_video || null,
144
+ new: item.new ? true : undefined // 将false转换为undefined, 用于节省ssr生成的文本长度
144
145
  }
145
146
  ```
146
147
 
@@ -247,10 +248,10 @@
247
248
  | pageName | string | 静态页面文件名称 | 是 | -- |
248
249
  | isMobile | boolean | 是否为手机设备 | 是 | -- |
249
250
 
250
- #### getSdkF2eFiles // 获取sdk静态资源
251
+ #### getSdkF2eFiles // 获取sdk静态资源
251
252
  #### 使用
252
253
  ```javascript
253
- await wgtNodeUtils.getModelF2eFiles(API_PATH, adsTagHref, ENV)
254
+ await wgtNodeUtils.getSdkF2eFiles(API_PATH, adsTagHref, ENV)
254
255
  ```
255
256
  ##### 参数说明:
256
257
  |参数 | 类型 | 说明 | 是否必传 | 默认值 |