| | |
| | |
|
| | | private void InitContact()
|
| | | {
|
| | | var config = GetConfig(VersionConfig.Get().appId, VersionConfig.Get().branch);
|
| | | var config = ContactConfig. GetConfig(VersionConfig.Get().appId, VersionConfig.Get().branch);
|
| | |
|
| | | m_QQTitle.text = Language.GetFromLocal(31);
|
| | | var qqContent = config.qq.Split('|');
|
| | |
| | | {
|
| | | if (Application.isMobilePlatform)
|
| | | {
|
| | | var config = GetConfig(VersionConfig.Get().appId, VersionConfig.Get().branch);
|
| | | var config = ContactConfig.GetConfig(VersionConfig.Get().appId, VersionConfig.Get().branch);
|
| | | SDKUtility.Instance.CopyContent(m_QQ.text);
|
| | | m_CopySucceedTip.Display(Language.GetFromLocal(33));
|
| | | }
|
| | |
| | | {
|
| | | if (Application.isMobilePlatform)
|
| | | {
|
| | | var config = GetConfig(VersionConfig.Get().appId, VersionConfig.Get().branch);
|
| | | var config = ContactConfig.GetConfig(VersionConfig.Get().appId, VersionConfig.Get().branch);
|
| | | SDKUtility.Instance.CopyContent(config.phone);
|
| | | m_CopySucceedTip.Display(Language.GetFromLocal(33));
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | private ContactConfig GetConfig(string appid, int branch)
|
| | | {
|
| | | ContactConfig config = null;
|
| | | foreach (var item in Config.Instance.GetAllValues<ContactConfig>())
|
| | | {
|
| | | if (item.appid == appid)
|
| | | {
|
| | | if (config == null)
|
| | | {
|
| | | config = item;
|
| | | }
|
| | | else
|
| | | {
|
| | | if (item.branch == branch)
|
| | | {
|
| | | config = item;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | return config;
|
| | | }
|
| | |
|
| | | }
|