更新 头像授权方案
This commit is contained in:
parent
f85bde1784
commit
bd8b49c27d
|
|
@ -141,8 +141,8 @@ export default class JiaZai extends cc.Component {
|
||||||
|
|
||||||
// 获取CareerList组件实例
|
// 获取CareerList组件实例
|
||||||
if (cc.fx.GameConfig.GM_INFO.address == "" || cc.fx.GameConfig.GM_INFO.address == "其他") {
|
if (cc.fx.GameConfig.GM_INFO.address == "" || cc.fx.GameConfig.GM_INFO.address == "其他") {
|
||||||
let top = this.node.getChildByName("Load").getChildByName("Top");
|
// let top = this.node.getChildByName("Load").getChildByName("Top");
|
||||||
top.getChildByName("posBtn").getChildByName("red").active = true;
|
// top.getChildByName("posBtn").getChildByName("red").active = true;
|
||||||
}
|
}
|
||||||
// //console.log("加载关卡配置2");
|
// //console.log("加载关卡配置2");
|
||||||
// window.initMgr();
|
// window.initMgr();
|
||||||
|
|
|
||||||
|
|
@ -2687,6 +2687,8 @@ export default class MapConroler extends cc.Component {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
cc.fx.GameConfig.GM_INFO.otherLevel = 0;
|
cc.fx.GameConfig.GM_INFO.otherLevel = 0;
|
||||||
cc.fx.GameConfig.GM_INFO.otherUid = "";
|
cc.fx.GameConfig.GM_INFO.otherUid = "";
|
||||||
|
cc.fx.GameTool.getUserAvatar(() => {
|
||||||
|
})
|
||||||
cc.director.loadScene("HomeScene");
|
cc.director.loadScene("HomeScene");
|
||||||
}, 1200);
|
}, 1200);
|
||||||
}
|
}
|
||||||
|
|
@ -2715,7 +2717,6 @@ export default class MapConroler extends cc.Component {
|
||||||
cc.fx.GameTool.shushu_Track("stage_help", eventData); //帮助通关
|
cc.fx.GameTool.shushu_Track("stage_help", eventData); //帮助通关
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
||||||
this.node.parent.parent.getChildByName("Lose").active = true;
|
this.node.parent.parent.getChildByName("Lose").active = true;
|
||||||
let pauseNode = this.node.parent.parent.getChildByName("Lose").getChildByName("lose");
|
let pauseNode = this.node.parent.parent.getChildByName("Lose").getChildByName("lose");
|
||||||
pauseNode.scale = 0.3;
|
pauseNode.scale = 0.3;
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,8 @@ export default class NewClass extends cc.Component {
|
||||||
clickBtn() {
|
clickBtn() {
|
||||||
cc.fx.AudioManager._instance.playEffect("anniu_Big", null);
|
cc.fx.AudioManager._instance.playEffect("anniu_Big", null);
|
||||||
if (this.btnStatic == 1) {
|
if (this.btnStatic == 1) {
|
||||||
|
cc.fx.GameTool.getUserAvatar(() => {
|
||||||
|
})
|
||||||
cc.director.loadScene("HomeScene");
|
cc.director.loadScene("HomeScene");
|
||||||
}
|
}
|
||||||
else if (this.btnStatic == 2) {
|
else if (this.btnStatic == 2) {
|
||||||
|
|
|
||||||
|
|
@ -225,6 +225,8 @@ export default class SceneManager extends cc.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
startGame() {
|
startGame() {
|
||||||
|
cc.fx.GameTool.getUserAvatar(() => {
|
||||||
|
})
|
||||||
cc.director.loadScene("HomeScene", (err) => {
|
cc.director.loadScene("HomeScene", (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error('加载 HomeScene 场景失败:', err);
|
console.error('加载 HomeScene 场景失败:', err);
|
||||||
|
|
@ -277,6 +279,8 @@ export default class SceneManager extends cc.Component {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
cc.fx.GameConfig.GM_INFO.otherLevel = 0;
|
cc.fx.GameConfig.GM_INFO.otherLevel = 0;
|
||||||
cc.fx.GameConfig.GM_INFO.otherUid = "";
|
cc.fx.GameConfig.GM_INFO.otherUid = "";
|
||||||
|
cc.fx.GameTool.getUserAvatar(() => {
|
||||||
|
})
|
||||||
cc.director.loadScene("HomeScene");
|
cc.director.loadScene("HomeScene");
|
||||||
}, 1200);
|
}, 1200);
|
||||||
}
|
}
|
||||||
|
|
@ -313,6 +317,8 @@ export default class SceneManager extends cc.Component {
|
||||||
switchToEmptyScene() {
|
switchToEmptyScene() {
|
||||||
const allNodes = cc.director.getScene().children;
|
const allNodes = cc.director.getScene().children;
|
||||||
this.destroyNodesInFrames(allNodes, () => {
|
this.destroyNodesInFrames(allNodes, () => {
|
||||||
|
cc.fx.GameTool.getUserAvatar(() => {
|
||||||
|
})
|
||||||
cc.director.loadScene("HomeScene");
|
cc.director.loadScene("HomeScene");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -426,8 +426,8 @@ var GameTool = {
|
||||||
//关卡上限
|
//关卡上限
|
||||||
maxLevel() {
|
maxLevel() {
|
||||||
let jg = false;
|
let jg = false;
|
||||||
if (cc.fx.GameConfig.GM_INFO.level > 799) {
|
if (cc.fx.GameConfig.GM_INFO.level > 729) {
|
||||||
cc.fx.GameConfig.GM_INFO.level = 800;
|
cc.fx.GameConfig.GM_INFO.level = 730;
|
||||||
jg = true;
|
jg = true;
|
||||||
}
|
}
|
||||||
return jg;
|
return jg;
|
||||||
|
|
@ -1498,6 +1498,10 @@ var GameTool = {
|
||||||
// this.showRanks(); // 非微信环境直接显示
|
// this.showRanks(); // 非微信环境直接显示
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
//肯定授权过,才会长度这么大
|
||||||
|
if (cc.fx.GameConfig.GM_INFO.useravatarIcon > 10) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
console.log('______________点击获取用户信息');
|
console.log('______________点击获取用户信息');
|
||||||
let user_Info = cc.fx.StorageMessage.getStorage("user_Info");
|
let user_Info = cc.fx.StorageMessage.getStorage("user_Info");
|
||||||
if (cc.fx.GameConfig.GM_INFO.wxUserInfo == true) {
|
if (cc.fx.GameConfig.GM_INFO.wxUserInfo == true) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"ver": "1.1.3",
|
"ver": "1.1.3",
|
||||||
"uuid": "634c714d-7bef-42c0-a151-4559cd02a0fa",
|
"uuid": "5334fea1-bc71-47ce-bf06-46e03d120b8b",
|
||||||
"importer": "folder",
|
"importer": "folder",
|
||||||
"isBundle": false,
|
"isBundle": false,
|
||||||
"bundleName": "",
|
"bundleName": "",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"last-module-event-record-time": 1763715552719,
|
"last-module-event-record-time": 1764326203728,
|
||||||
"group-list": [
|
"group-list": [
|
||||||
"default",
|
"default",
|
||||||
"Map"
|
"Map"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user