Created
June 19, 2020 16:02
-
-
Save jianzhongli/5848549a3e46a954025a3abdd3f0f1b9 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const 等待发起刷脸支付 = { | |
initial: '等待扫码', | |
states: { | |
等待扫码: { | |
on: { | |
用户扫码: '已扫码' | |
} | |
}, | |
已扫码: { | |
on: { | |
超时: '等待扫码' | |
} | |
}, | |
} | |
}; | |
const 人脸识别 = { | |
initial: '正在获取优选图', | |
states: { | |
'正在获取优选图': {}, | |
'等待后台确认识别结果': {} | |
} | |
} | |
const 主流程状态机 = Machine({ | |
key: '刷脸支付主流程状态机', | |
initial: '等待发起刷脸支付', | |
states: { | |
等待发起刷脸支付: { | |
...等待发起刷脸支付 | |
}, | |
人脸识别: { | |
...人脸识别 | |
} | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment