protected void btnSubmit_Click(object sender, EventArgs e) { if (myversionid == 0 || platformid == 0) { lblLog.Text = "参数错误"; return; } string platformIcon = this.hfPlatformIcon.Value; string platformname = CtrlHelper.GetText(txtPlatformName); string platformdisplayname = CtrlHelper.GetText(txtPlatformDisplayName); string sdkversion = CtrlHelper.GetText(txtSdkVersion); if (platformid == 1) { string SDKPackageDir = ConfigurationManager.AppSettings["SDKPackageDir"]; SDKPackageDir = SDKPackageDir + "SDK\\Channel_SDK\\" + platformname + "\\" + sdkversion + "\\"; if (!System.IO.Directory.Exists(SDKPackageDir)) { this.lblLog.Text = "渠道版本创建失败:该渠道版本文件夹不存在!"; return; } } Message umsg = aideNativeWebFacade.AddPlatForm(platformname, platformdisplayname, sdkversion, myversionid, platformid, platformIcon, Context.User.Identity.Name); if (umsg.Success) { Response.Write("<script>window.opener.document.getElementById(\"hfreturnVal\").value = \"success\"</script>"); } lblLog.Text = umsg.Content; }