void LoginSDK() { var userid = PlayerPrefs.GetString("UserID", ""); var user_sig = PlayerPrefs.GetString("Secret", ""); TIMResult res = TencentIMSDK.Login(userid, user_sig, Utils.addAsyncNullDataToScreen(GetResult)); Result.text = Utils.SynchronizeResult(res); }
public static void Login() { if (userid == "" || user_sig == "") { addStringDataToConsole("input a userid and user_sig first"); return; } // 业务可以替换自己的 sdkappid TIMResult res = TencentIMSDK.Login(userid, user_sig, addAsyncDataToConsole); addDataToConsole(res); }