コード例 #1
0
        static string getDesc(string title, string desc, string contactInfo)
        {
            SendTitle = title;
            SendDesc  = desc;
            string realDesc = string.Format(
                $"{MarkdownUtil.H2("Version")}:\n{BuildConfig.FullVersionName}\n" +
                $"{MarkdownUtil.H2("Contact")}:\n{contactInfo}\n" +
                $"{MarkdownUtil.H2("GMMode")}:\n{BaseGlobal.DiffMgr.IsSettedGMMod()}\n" +
                $"{MarkdownUtil.H2("Name")}:\n{BaseGlobal.PlatSDKMgr.GetName()}\n" +
                $"{MarkdownUtil.H2("Desc")}:\n{SendDesc}\n" +
                $"{MarkdownUtil.H2("Error")}:\n{IMUIErrorCatcher.GetErrorString()}\n" +
                $"{MarkdownUtil.H2("SystemInfo")}:\n{Util.AdvSystemInfo}"
                );

            return(realDesc);
        }
コード例 #2
0
        public static void SendError(string desc, string contactInfo, bool isSendAchieve = false)
        {
            string realDesc = getDesc("错误信息", desc, contactInfo);

            //简体中文地区自动发送邮件
            if (BaseLanguageMgr.LanguageType == LanguageType.Chinese)
            {
                string filePath = null;
                if (isSendAchieve)
                {
                    if (BaseGlobal.BattleMgr.IsInBattle)
                    {
                        BaseGlobal.DBMgr.SaveTemp();
                        filePath = BaseGlobal.DBMgr.GetTempSavePath();
                    }
                }
                CMail.Send(IMUIErrorCatcher.GetTitle(), realDesc, filePath);
            }
        }
コード例 #3
0
 public void Awake()
 {
     Ins = this;
     InitStyles();
     SceneManager.sceneLoaded += OnSceneLoaded;
 }