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