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