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