Commit eaafb5f6 authored by 范雪寒's avatar 范雪寒

feat: cacert文件

parent abd64650
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
"_children": [ "_children": [
{ {
"__id__": 2 "__id__": 2
},
{
"__id__": 10
} }
], ],
"_active": true, "_active": true,
...@@ -380,5 +383,80 @@ ...@@ -380,5 +383,80 @@
}, },
"_enabled": true, "_enabled": true,
"_id": "8fs+P5YTtKGr7GBrV5R431" "_id": "8fs+P5YTtKGr7GBrV5R431"
},
{
"__type__": "cc.Node",
"_name": "cacertNode",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "d6OZ5YlbNPYKExNXuwR6pL"
},
{
"__type__": "42b96eeIeZKHZKJdVfS5dD7",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"cacertFile": {
"__uuid__": "fd279805-6e95-474f-ac26-e19034f2b093"
},
"_id": "bc9QrFiwtFMrZEN9xsh2Av"
} }
] ]
\ No newline at end of file
...@@ -31,6 +31,8 @@ cc.Class({ ...@@ -31,6 +31,8 @@ cc.Class({
const uri = '/api/template/v1/middleLayer_for_debug' const uri = '/api/template/v1/middleLayer_for_debug'
const reqData = {}; const reqData = {};
cc.game.addPersistRootNode(cc.find('cacertNode'));
this.callNetworkApiGet(baseUrl, uri, reqData, (respData) => { this.callNetworkApiGet(baseUrl, uri, reqData, (respData) => {
const data = JSON.parse(respData); const data = JSON.parse(respData);
const configData = data.data.conf.android; const configData = data.data.conf.android;
......
// Learn cc.Class:
// - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
cc.Class({
extends: cc.Component,
properties: {
cacertFile: {
type: cc.Asset,
default: null
}
},
start() {
},
});
{
"ver": "1.0.8",
"uuid": "42b9679e-21e6-4a1d-9289-7557d2e5d0fb",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
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