"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[27333],{35420:function(e,t,a){a.r(t);var n=a(7557),r=a.n(n),c=a(41498),o=a.n(c),s=a(79800),u=a.n(s),l=a(59301),i=a(49389),f=a(61621),h=a(94171),p=a(37712);t.default=function(){var e=(0,i.useLocation)(),t=(0,i.useHistory)(),a=e.query,n=a.code,c=a.state;return(0,l.useEffect)((function(){var e=c.split(","),a=u()(e,2),s=a[0];a[1];function l(){return(l=o()(r()().mark((function e(){var a,c,o,u,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.U2)("auth/wechat/callback.json",{code:n});case 2:a=e.sent,c=a.status,o=a.new_user,0===c&&(u=localStorage.getItem("addinfo"),l=localStorage.getItem("classromeurl"),o?t.replace("/otherlogin?type=wechat"):"1"===u?(t.replace(l),localStorage.removeItem("addinfo"),localStorage.removeItem("classromeurl")):t.replace("account"===s?"/account/binding":"/"));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){l.apply(this,arguments)}()}),[n,c]),(0,p.jsx)("div",{className:"other-login",style:{height:"100vh",background:"#fff"},children:(0,p.jsx)(f.Z,{})})}}}]);