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