Commit ab07cf77 authored by 李维's avatar 李维

fix: 替换http

parent b810c7ca
{
"ver": "2.3.5",
"uuid": "f659072a-d990-4b34-a789-5e076f7e8817",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2562,
"height": 1444,
"platformSettings": {},
"subMetas": {
"wechat_2025-08-21_213128_182": {
"ver": "1.0.4",
"uuid": "3d3cb355-7e07-40a6-9242-7eebccb8d494",
"rawTextureUuid": "f659072a-d990-4b34-a789-5e076f7e8817",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2562,
"height": 1444,
"rawWidth": 2562,
"rawHeight": 1444,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
......@@ -17,7 +17,7 @@
"__id__": 2
}
],
"_active": true,
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
......@@ -1471,7 +1471,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1000,
"width": 0,
"height": 50.4
},
"_anchorPoint": {
......
......@@ -274,7 +274,22 @@ export default class GameCenter extends cc.Component {
console.log('rows数组长度:', data.rows.length);
console.log('rows数据:', data.rows);
this.gameDataList = data.rows;
this.gameDataList = [];
data.rows.forEach(item => {
console.log('item:', item);
if(item.cover) {
item.cover = item.cover.replace('http://', 'https://');
}
if(item.data) {
item.data = item.data.replace('http://', 'https://');
}
this.gameDataList.push(item);
console.log('item:', item);
return item;
});
console.log('保存到gameDataList:', this.gameDataList);
this.createGameList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment