(window.webpackJsonp=window.webpackJsonp||[]).push([[188],{"/pIo":function(g,a,e){"use strict";e.r(a);var T=e("2mHG"),h=e("KFRP"),y=e("VBJJ"),n=e.n(y),O=e("z3+T"),P=e("GZha"),o=e("ZZRV"),s=e.n(o),l=e("q5+0"),D=e("ErOA");a.default=function(){var f=Object(l.l)(),i=Object(l.k)(),u=f.query,d=u.code,m=u.state;return Object(o.useEffect)(function(){var M=m.split(","),E=Object(P.a)(M,2),U=E[0],A=E[1];function v(){return _.apply(this,arguments)}function _(){return _=Object(O.a)(n.a.mark(function R(){var r,c,p;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(D.d)("auth/qq/callback",{code:d,redirect_uri:"https://www.educoder.net/otherloginqq"});case 2:r=t.sent,c=r.status,p=r.new_user,c===0&&(p?i.replace("/otherlogin?type=qq"):i.replace(U==="account"?"/account/binding":"/"));case 6:case"end":return t.stop()}},R)})),_.apply(this,arguments)}v()},[d,m]),s.a.createElement("div",{className:"other-login",style:{height:"100vh",background:"#fff"}},s.a.createElement(h.a,null))}}}]);
