Commit c5d48700 by FE

quick login add plat param

parent 692129b4
...@@ -15,10 +15,12 @@ const accountLogin = user => dispatch => { ...@@ -15,10 +15,12 @@ const accountLogin = user => dispatch => {
} }
const quickLogin = user => dispatch => { const quickLogin = user => dispatch => {
return http.post(`${API['passport-api']}/quick_login`, user) return http.post(`${API['passport-api']}/quick_login`, {
.then(res => { ...user,
return storeUser(res, dispatch) plat: 5
}) }).then(res => {
return storeUser(res, dispatch)
})
} }
const storeUser = (res, dispatch) => { const storeUser = (res, dispatch) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment