wgt-node-utils 1.2.46 → 1.2.47
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/dist/bundle.js +1 -1
- package/package.json +1 -1
- package/src/index.js +2 -4
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -429,11 +429,10 @@ class wgtNodeUtils {
|
|
|
429
429
|
* @param list 清理数组
|
|
430
430
|
* @param need 需要的字段 [game_id,game_category]
|
|
431
431
|
*/
|
|
432
|
-
clearGameCardListData = (list, need=[]) => {
|
|
433
|
-
var result = {};
|
|
432
|
+
clearGameCardListData = (list, need=[]) => {
|
|
434
433
|
// 游戏卡片使用到的字段
|
|
435
434
|
return list.map((item = {}) => {
|
|
436
|
-
|
|
435
|
+
var result = {};
|
|
437
436
|
if (need.length === 0) {
|
|
438
437
|
return {
|
|
439
438
|
id: item.game_id,
|
|
@@ -456,7 +455,6 @@ class wgtNodeUtils {
|
|
|
456
455
|
}
|
|
457
456
|
|
|
458
457
|
});
|
|
459
|
-
|
|
460
458
|
}
|
|
461
459
|
|
|
462
460
|
// 用于渲染游戏详情的数据,清理无用字段
|