Commit cbf8d11c authored by liuxinjun's avatar liuxinjun

确定sdk的调用顺序为:先登录后初始化游戏

parent 7aa4b271
......@@ -74,9 +74,7 @@ var sdk = {
*/
init(args, callback){
var self = this;
//根据sdk_conf初始化api
this.init_api();
return;
if(args.debug){
this.debug = args.debug;
}
......@@ -1089,6 +1087,9 @@ var sdk = {
*
*/
WeChatLogin(callback){
//根据sdk_conf初始化api
this.init_api();
var self = this;
if (cc.sys.platform === cc.sys.WECHAT_GAME) {
......
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