From 2a052ac0aaf46ea00b87dcc75e6a6d6cea1135ba Mon Sep 17 00:00:00 2001 From: "guoqing.zhu" <1521292690@qq.com> Date: Mon, 30 May 2022 16:38:25 +0800 Subject: [PATCH] update --- assets/LoginScene.fire | 4 ++-- assets/scripts/BaseNet.js | 6 +++++- assets/scripts/manages/NetManage.js | 23 +++++++++++++++++++++++ 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/assets/LoginScene.fire b/assets/LoginScene.fire index 02d168b0..e8f2fea7 100644 --- a/assets/LoginScene.fire +++ b/assets/LoginScene.fire @@ -47,8 +47,8 @@ }, "_scale": { "__type__": "cc.Vec3", - "x": 0.5993534574534599, - "y": 0.5993534574534599, + "x": 0.739453136920929, + "y": 0.739453136920929, "z": 1 }, "_quat": { diff --git a/assets/scripts/BaseNet.js b/assets/scripts/BaseNet.js index b43d2d6c..e325c8ed 100644 --- a/assets/scripts/BaseNet.js +++ b/assets/scripts/BaseNet.js @@ -19,7 +19,11 @@ export var allBaseNet = { isDevEnv(); function isDevEnv() { - return true; + var toreturn = false + if(cc.debug){ + return true; + } + return toreturn } if (isDevEnv()) { diff --git a/assets/scripts/manages/NetManage.js b/assets/scripts/manages/NetManage.js index 8681425a..c70c09c9 100644 --- a/assets/scripts/manages/NetManage.js +++ b/assets/scripts/manages/NetManage.js @@ -612,4 +612,27 @@ module.exports = { .addKV('mission_id', mission); this.getResponce(cb, this.urlbd); }, + + + searchUserByAccountid(account, cb) { + this.urlbd.clear(); + this.urlbd + .addKV("c", "User") + .addKV("a", "info") + .addKV("account_id", this.account_id) + .addKV("session_id", this.session_id) + .addKV("target_id", account); + this.getResponce(cb, this.urlbd); + }, + + searchUserByName(name, cb) { + this.urlbd.clear(); + this.urlbd + .addKV("c", "User") + .addKV("a", "query") + .addKV("account_id", this.account_id) + .addKV("session_id", this.session_id) + .addKV("name", name); + this.getResponce(cb, this.urlbd); + }, };