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