
var dcxMyUrl=null;$(document).ready(function(){dcxMyUrl=tzm("dcxUrl");if(ymr(dcxMyUrl))dcxMyUrl="www.dcxCreator.com";dcxMyUrl=wxo(dcxMyUrl,"ub2z",".");dcxMyUrl="http://"+dcxMyUrl;var a=lux();if(a<1||!IsLogined){window.location.href=dcxMyUrl+"/designer/clientState.html?clientState=1";return}else{if(ymr(reMsg))reMsg={"IsOK":true,"ErrorMsg":""};if(!hasAccept){reMsg.IsOK=false;if(!ymr(reMsg.ErrorMsg)){reMsg.ErrorMsg=reMsg.ErrorMsg+"。"}
reMsg.ErrorMsg=reMsg.ErrorMsg+"接收失败！"}
vrr(reMsg)}});function vrr(a){if(a!=null)a=hmy(a);if(a!=null&&typeof(a)=="string")a=eval("("+a+")");if(a==null){art.VLdialog.alert("发布失败！",function(){},222222,"提示");var b="提交失败，请确认您是否在运行端配置好了我方提供的密钥等信息";window.location.href=dcxMyUrl+"/designer/clientState.html?clientState=2&errstr="+escape(b);return;return false}
if(a.IsOK){window.location.href=dcxMyUrl+"/designer/clientState.html?clientState=3";return}else{window.location.href=dcxMyUrl+"/designer/clientState.html?clientState=4&errstr="+escape(a.ErrorMsg);return}}
function kxc(){var c=$("#hid_moduleTypeId").val();var d=$("#hid_plshObj").val();var e={"ModuleTypeId":c,"plshObj":null};e.plshObj=d;var f="/WebServices/Publish/Publish.asmx/AcceptAllPublish";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:f,async:false,data:JSON2.stringify(e),dataType:'json',beforeSend:function(a){},complete:function(a,b){},error:function(a){var b="获取数据失败。详情："+JSON2.stringify(a);window.location.href=dcxMyUrl+"/designer/clientState.html?clientState=2&errstr="+escape(b);return;alert("获取数据失败。详情："+JSON2.stringify(a))},success:function(a){vrr(a)}})}