This commit is contained in:
root 2019-11-23 15:05:02 +08:00
parent 7630e2384e
commit c436ac1e29
5 changed files with 10 additions and 6 deletions

View File

@ -20,6 +20,11 @@ class TutorialController extends Controller
public function getAppleID (Request $request) { public function getAppleID (Request $request) {
$user = User::find($request->session()->get('id')); $user = User::find($request->session()->get('id'));
if ($user->expired_at >= time()) { if ($user->expired_at >= time()) {
return response([
'data' => [
]
]);
}
return response([ return response([
'data' => [ 'data' => [
'apple_id' => config('v2board.apple_id'), 'apple_id' => config('v2board.apple_id'),
@ -28,4 +33,3 @@ class TutorialController extends Controller
]); ]);
} }
} }
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[13],{SGa5:function(e,t,a){"use strict";a.r(t);a("Pwec");var n=a("CtXQ"),s=a("q1tI"),o=a.n(s),l=a("/MKj"),r=a("3a4m"),c=a.n(r);a("t3Un");class i extends o.a.Component{constructor(){super(...arguments),this.state={loading:!1}}componentDidMount(){}onLogin(){this.setState({loading:!0}),this.props.dispatch({type:"auth/login",action:{email:this.refs.email.value,password:this.refs.password.value},complete:e=>{if(200!==e.code)return this.setState({loading:!1});e.data&&(this.setState({loading:!1}),c.a.push("/dashboard"),this.props.dispatch({type:"header/getUserInfo"}))}})}render(){return o.a.createElement("div",{id:"page-container"},o.a.createElement("main",{id:"main-container"},o.a.createElement("div",{className:"row no-gutters justify-content-center bg-body-dark"},o.a.createElement("div",{className:"hero-static col-sm-10 col-md-6 col-xl-4 d-flex align-items-center p-2"},o.a.createElement("div",{className:"block block-rounded block-transparent block-fx-pop w-100 mb-0 overflow-hidden bg-image"},o.a.createElement("div",{className:"row no-gutters"},o.a.createElement("div",{className:"col-md-12 order-md-1 bg-white"},o.a.createElement("div",{className:"block-content block-content-full px-lg-4 py-md-4 py-lg-4"},o.a.createElement("div",{className:"mb-2 text-center"},o.a.createElement("a",{className:"link-fx font-w700 font-size-h1",href:"index.html"},o.a.createElement("span",{className:"text-dark"},window.v2board.title?window.v2board.title:"V2Board")),o.a.createElement("p",{className:"text-uppercase font-w700 font-size-sm text-muted"},"\u8be5\u9875\u9762\u662f\u88ab\u52a0\u5bc6\u7684")),o.a.createElement("div",{className:"form-group"},o.a.createElement("input",{type:"text",className:"form-control form-control-alt",placeholder:"\u90ae\u7bb1",ref:"email"})),o.a.createElement("div",{className:"form-group"},o.a.createElement("input",{type:"password",className:"form-control form-control-alt",placeholder:"\u5bc6\u7801",ref:"password"})),o.a.createElement("div",{className:"form-group"},o.a.createElement("button",{disabled:this.state.loading,type:"submit",className:"btn btn-block btn-hero-primary",onClick:()=>this.onLogin()},this.state.loading?o.a.createElement(n["a"],{type:"loading"}):o.a.createElement("span",null,o.a.createElement("i",{className:"fa fa-fw fa-sign-in-alt mr-1"}),"\u767b\u9646")),o.a.createElement("div",{className:"text-center mt-3"},o.a.createElement("a",{className:"font-w700 font-size-sm text-muted",href:"javascript:;",onClick:()=>c.a.push("/forgetpassword")},"\u5fd8\u8bb0\u5bc6\u7801?")))))))))))}}t["default"]=Object(l["c"])()(i)}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[13],{SGa5:function(e,t,a){"use strict";a.r(t);a("Pwec");var n=a("CtXQ"),s=a("q1tI"),o=a.n(s),l=a("/MKj"),r=a("3a4m"),c=a.n(r);a("t3Un");class i extends o.a.Component{constructor(){super(...arguments),this.state={loading:!1}}componentDidMount(){}onLogin(){this.setState({loading:!0}),this.props.dispatch({type:"auth/login",action:{email:this.refs.email.value,password:this.refs.password.value},complete:e=>{if(console.log(e.code),200!==e.code)return this.setState({loading:!1});e.data&&(this.setState({loading:!1}),c.a.push("/dashboard"),this.props.dispatch({type:"header/getUserInfo"}))}})}render(){return o.a.createElement("div",{id:"page-container"},o.a.createElement("main",{id:"main-container"},o.a.createElement("div",{className:"row no-gutters justify-content-center bg-body-dark"},o.a.createElement("div",{className:"hero-static col-sm-10 col-md-6 col-xl-4 d-flex align-items-center p-2"},o.a.createElement("div",{className:"block block-rounded block-transparent block-fx-pop w-100 mb-0 overflow-hidden bg-image"},o.a.createElement("div",{className:"row no-gutters"},o.a.createElement("div",{className:"col-md-12 order-md-1 bg-white"},o.a.createElement("div",{className:"block-content block-content-full px-lg-4 py-md-4 py-lg-4"},o.a.createElement("div",{className:"mb-2 text-center"},o.a.createElement("a",{className:"link-fx font-w700 font-size-h1",href:"index.html"},o.a.createElement("span",{className:"text-dark"},window.v2board.title?window.v2board.title:"V2Board")),o.a.createElement("p",{className:"text-uppercase font-w700 font-size-sm text-muted"},"\u8be5\u9875\u9762\u662f\u88ab\u52a0\u5bc6\u7684")),o.a.createElement("div",{className:"form-group"},o.a.createElement("input",{type:"text",className:"form-control form-control-alt",placeholder:"\u90ae\u7bb1",ref:"email"})),o.a.createElement("div",{className:"form-group"},o.a.createElement("input",{type:"password",className:"form-control form-control-alt",placeholder:"\u5bc6\u7801",ref:"password"})),o.a.createElement("div",{className:"form-group"},o.a.createElement("button",{disabled:this.state.loading,type:"submit",className:"btn btn-block btn-hero-primary",onClick:()=>this.onLogin()},this.state.loading?o.a.createElement(n["a"],{type:"loading"}):o.a.createElement("span",null,o.a.createElement("i",{className:"fa fa-fw fa-sign-in-alt mr-1"}),"\u767b\u9646")),o.a.createElement("div",{className:"text-center mt-3"},o.a.createElement("a",{className:"font-w700 font-size-sm text-muted",href:"javascript:;",onClick:()=>c.a.push("/forgetpassword")},"\u5fd8\u8bb0\u5bc6\u7801?")))))))))))}}t["default"]=Object(l["c"])()(i)}}]);

2
public/umi.js vendored

File diff suppressed because one or more lines are too long