|
|
@ -15,7 +15,7 @@ using UMC.Data;
|
|
|
|
namespace UMC.ITME.Activities
|
|
|
|
namespace UMC.ITME.Activities
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 邮箱账户
|
|
|
|
/// 应用安装
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
[UMC.Web.Apiumc("ITME", "Setup", Auth = WebAuthType.Admin)]
|
|
|
|
[UMC.Web.Apiumc("ITME", "Setup", Auth = WebAuthType.Admin)]
|
|
|
|
class SiteSetupActivity : WebActivity
|
|
|
|
class SiteSetupActivity : WebActivity
|
|
|
@ -84,7 +84,7 @@ namespace UMC.ITME.Activities
|
|
|
|
}
|
|
|
|
}
|
|
|
|
from.Title = "开发者发布";
|
|
|
|
from.Title = "开发者发布";
|
|
|
|
|
|
|
|
|
|
|
|
from.Add(UICell.Create("QRCode", new WebMeta().Put("value", $"https://api.apiumc.com/UMC/Platform/EditCert/{appId}")));
|
|
|
|
from.Add(UICell.QRCode($"https://api.apiumc.com/UMC/Platform/EditCert/{appId}"));
|
|
|
|
from.AddConfirm("请开发者用ITME App扫一扫,生成开发者证书,再点击下一步", "Settings", "YES");
|
|
|
|
from.AddConfirm("请开发者用ITME App扫一扫,生成开发者证书,再点击下一步", "Settings", "YES");
|
|
|
|
|
|
|
|
|
|
|
|
from.Submit("下一步", $"{request.Model}.{request.Command}");
|
|
|
|
from.Submit("下一步", $"{request.Model}.{request.Command}");
|
|
|
@ -102,7 +102,7 @@ namespace UMC.ITME.Activities
|
|
|
|
{
|
|
|
|
{
|
|
|
|
request.Arguments.Put("ConfKey", "Proxy");
|
|
|
|
request.Arguments.Put("ConfKey", "Proxy");
|
|
|
|
goto case "UMC";
|
|
|
|
goto case "UMC";
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (data.ContainsKey("success"))
|
|
|
|
if (data.ContainsKey("success"))
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -143,7 +143,7 @@ namespace UMC.ITME.Activities
|
|
|
|
{
|
|
|
|
{
|
|
|
|
request.Arguments.Put("ConfKey", "Proxy");
|
|
|
|
request.Arguments.Put("ConfKey", "Proxy");
|
|
|
|
goto case "UMC";
|
|
|
|
goto case "UMC";
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// break;
|
|
|
|
// break;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -227,7 +227,7 @@ namespace UMC.ITME.Activities
|
|
|
|
Domain = new Uri(orgDomain, "/").AbsoluteUri;//
|
|
|
|
Domain = new Uri(orgDomain, "/").AbsoluteUri;//
|
|
|
|
this.Context.Request.Arguments.Put("ConfKey", "UMC");
|
|
|
|
this.Context.Request.Arguments.Put("ConfKey", "UMC");
|
|
|
|
this.Context.Request.Arguments.Put("Domain", Domain);
|
|
|
|
this.Context.Request.Arguments.Put("Domain", Domain);
|
|
|
|
var str = new Uri(orgDomain, "/UMC.Conf").WebRequest().Put(new WebMeta().Put("domain", $"{Web.WebResource.Instance().WebDomain()}")).ReadAsString();
|
|
|
|
var str = new Uri(orgDomain, "/UMC/Conf").WebRequest().Put(new WebMeta().Put("domain", $"{Web.WebResource.Instance().WebDomain()}")).ReadAsString();
|
|
|
|
var data = JSON.Deserialize<System.Collections.Hashtable>(str);
|
|
|
|
var data = JSON.Deserialize<System.Collections.Hashtable>(str);
|
|
|
|
if (data?.ContainsKey("appConf") == true)
|
|
|
|
if (data?.ContainsKey("appConf") == true)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -237,6 +237,14 @@ namespace UMC.ITME.Activities
|
|
|
|
this.Context.Request.Arguments.Put("IconSrc", appConf["IconSrc"]);
|
|
|
|
this.Context.Request.Arguments.Put("IconSrc", appConf["IconSrc"]);
|
|
|
|
config.Put("IconSrc", appConf["IconSrc"]);
|
|
|
|
config.Put("IconSrc", appConf["IconSrc"]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (appConf.ContainsKey("MarketKey"))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
site.AuthConf = "#";
|
|
|
|
|
|
|
|
site.UserModel = UserModel.Bridge;
|
|
|
|
|
|
|
|
site.AuthType = WebAuthType.Guest;
|
|
|
|
|
|
|
|
ConfKey = appConf["MarketKey"] as string;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (appConf.ContainsKey("Open"))
|
|
|
|
if (appConf.ContainsKey("Open"))
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -257,7 +265,7 @@ namespace UMC.ITME.Activities
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.Context.Request.Arguments.Put("Mobile", appConf["Mobile"]);
|
|
|
|
this.Context.Request.Arguments.Put("Mobile", appConf["Mobile"]);
|
|
|
|
config.Put("Mobile", appConf["Mobile"]);
|
|
|
|
config.Put("Mobile", appConf["Mobile"]);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|