var xcfgs={ak:"0b6fededa18444bdbe33f57d020d5987",uid:"twli9ayjmcta:c650fd13c6f7",get:"//api.xcheck.com.cn/code/get",check:"//api.xcheck.com.cn/code/check",track:"//api.xcheck.com.cn/code/track",smsInter:120,boxInter:0}; function XCheck(){var a={storeKey:xcfgs.ak,get:function(c,d,b){$.get(xcfgs.get+"?ak="+xcfgs.ak+"&uid="+a.getStore(a.storeKey)+"&num="+c+"&type="+d+"&state=",function(e){if(b&&b(e)==false){return false}})},getImgCode:function(c,b){if(!c||c.length==0){b({code:1100,data:null,description:"参数不能为空"});return}a.get(c,1,b)},sendSmsCode:function(c,b){if(!c||c.length!=11||c.indexOf("1")!=0){b({code:1100,data:null,description:"手机号码格式错误"});return}a.get(c,2,b)},sendEmailCode:function(c,b){if(!c||c.indexOf("@")<1){b({code:1100,data:null,description:"邮箱地址格式错误"});return}a.get(c,3,b)},encode:function(k){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var h=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);var e,g,j;var f,d,c;j=k.length;g=0;e="";while(g>2);e+=b.charAt((f&3)<<4);e+="==";break}d=k.charCodeAt(g++);if(g==j){e+=b.charAt(f>>2);e+=b.charAt(((f&3)<<4)|((d&240)>>4));e+=b.charAt((d&15)<<2);e+="=";break}c=k.charCodeAt(g++);e+=b.charAt(f>>2);e+=b.charAt(((f&3)<<4)|((d&240)>>4));e+=b.charAt(((d&15)<<2)|((c&192)>>6));e+=b.charAt(c&63)}return e},check:function(e,d,f,b){var c=xcfgs.check+"?ak="+xcfgs.ak+"&key="+e+"&num="+d+"&code="+f+"&state=";$.get(c,function(g){if(g.code>0){alert(g.description);return}if(b&&b(g)==false){return false}})},setStore:function(b,d){var c=30;var e=new Date();e.setTime(e.getTime()+c*24*60*60*1000);document.cookie=b+"="+escape(d)+";expires="+e.toGMTString()},getStore:function(c){var b,d=new RegExp("(^| )"+c+"=([^;]*)(;|$)");if(b=document.cookie.match(d)){return unescape(b[2])}else{return null}}};if(a.getStore(a.storeKey)==null||a.getStore(a.storeKey).length<10){a.setStore(a.storeKey,a.encode(xcfgs.uid))}this.getImgCode=a.getImgCode;this.sendSmsCode=a.sendSmsCode;this.sendEmailCode=a.sendEmailCode;this.check=a.check};