You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/public/react/dist/static/js/229.7ef50878.chunk.js

1 line
1.3 KiB

(this.webpackJsonph5=this.webpackJsonph5||[]).push([[229],{2357:function(t,e,n){"use strict";n.r(e),n(104);var a=n(60),c=n(8),o=n(7),r=n(10),s=n(9),i=n(11),p=n(0),l=n.n(p),h=n(6),u=n.n(h),d=function(t){function e(){return Object(c.a)(this,e),Object(r.a)(this,Object(s.a)(e).apply(this,arguments))}return Object(i.a)(e,t),Object(o.a)(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props.location.search;if(""!=e){var n=e.split("?code=")[1].split("&state="),a=n[1].split(",");("test-newweb.educoder.net"===a[1]||"pre-newweb.educoder.net"===a[1])&&(window.location.href="https://".concat(a[1],"/otherloginstart?code=").concat(n[0],'&state=null,""')),u.a.get("/auth/wechat/callback.json",{params:{code:n[0]}}).then((function(e){e&&0===e.data.status&&(!0===e.data.new_user?t.props.history.replace("/otherlogin?type=wechat"):"account"===a[0]?t.props.history.replace("/account/binding"):t.props.history.replace("/"))})).catch((function(t){}))}}},{key:"render",value:function(){return l.a.createElement("div",{className:"App",style:{minHeight:"800px",width:"100%"}},l.a.createElement("style",null,"\n\t\t\t\t\t\t .margintop{\n\t\t\t\t\t\t margin-top:20%;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t"),l.a.createElement(a.a,{size:"large",className:"margintop"}))}}]),e}(p.Component);e.default=d}}]);