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