/// <summary> /// 创建实例 /// </summary> public static SendHttpClientLogHttpRequest create(string uid, int type, string content) { SendHttpClientLogHttpRequest re = new SendHttpClientLogHttpRequest(); re.uid = uid; re.type = type; re.content = content; return(re); }
protected void toSendLog(int type, string str) { //game层处理掉了 if (_gameSendLogFunc != null && _gameSendLogFunc(type, str)) { return; } string uid = GameC.main != null ? GameC.main.uid : ""; if (SystemControl.isNetOpen()) { try { Ctrl.setLogPause(true); SendHttpClientLogHttpRequest.create(uid, type, str).send(); } catch (Exception e) { } Ctrl.setLogPause(false); } }