@ -30,7 +30,9 @@ async function accord (ctx) {
const { action, data: params } = data
if (action == 'create') {
await models.User.create(params)
let params_ = JSON.parse(JSON.stringify(params))
params_.delete = false
await models.User.create(params_)
} else {
await models.User.update(params, {
where: {
@ -39,7 +39,6 @@ const Cross = ({ dispatch, actions }) => {
if (user) {
user = JSON.parse(user)
const crossRslt = await dispatch(authAction.crossCheck({ token: user.token }))
window.parent.postMessage({ action: 'initUser', user: user }, '*');
if (crossRslt.success && crossRslt.payload.data.cross) {