优快云 Markdown流程图示例

本文详细介绍了使用Mermaid语法在优快云博客中绘制流程图的方法,通过四个具体示例展示了从用户登录到购买商品的业务流程,包括登录验证、库存检查、支付确认及超时处理等关键步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

优快云 Markdown流程图示例

示例1

```mermaid
flowchat
st=>start: 开始
e=>end: 结束
op=>operation: 我的操作
cond=>condition: 确认?

st->op->cond
cond(yes)->e
cond(no)->op
```
Created with Raphaël 2.3.0 开始 我的操作 确认? 结束 yes no

示例2

```mermaid
flowchat
start=>start: 开始
end=>end: 结束
login=>operation: 用户登录
is_login_sucess=>condition: 登录是否成功?
buy=>operation: 抢购
Is_the_stock_sufficient=>condition: 库存是否充足?
lock_inventory=>operation: 锁定库存
prompt=>operation: 给出提示
pay=>operation: 支付
whether_to_pay_successfully=>condition: 支付是否成功?
reduce_inventory=>operation: 减库存
whether_it_is_more_than_two_hours=>condition: 是否超过两个小时?
release_inventory=>operation: 释放库存

start->login
login->is_login_sucess
is_login_sucess(yes)->buy
is_login_sucess(no)->login
buy->Is_the_stock_sufficient
Is_the_stock_sufficient(yes)->lock_inventory
Is_the_stock_sufficient(no)->prompt->end
lock_inventory->pay->whether_to_pay_successfully
whether_to_pay_successfully(yes)->reduce_inventory->end
whether_to_pay_successfully(no)->whether_it_is_more_than_two_hours
whether_it_is_more_than_two_hours(yes)->release_inventory->end
whether_it_is_more_than_two_hours(no)->lock_inventory
```
Created with Raphaël 2.3.0 开始 用户登录 登录是否成功? 抢购 库存是否充足? 锁定库存 支付 支付是否成功? 减库存 结束 是否超过两个小时? 释放库存 给出提示 yes no yes no yes no yes no

示例3

```mermaid
flowchat
start=>start: 开始
end=>end: 结束

login_with_username=>operation: 用户名密码登录
login_with_weixin=>operation: 微信登录
login_with_alipay=>operation: 支付宝登录
login_with_third=>operation: 用第三方登录
whether_login_is_successful=>condition: 登录是否成功?
whether_to_login_by_username=>condition: 是否以用户方式登录?
is_login_with_weixin=>condition: 是否以微信方式登录?
buy=>operation: 抢购
login=>operation: 登录

start->whether_to_login_by_username
whether_to_login_by_username(yes)->login_with_username
whether_to_login_by_username(no)->login_with_third
login_with_username->login
login_with_third->is_login_with_weixin
is_login_with_weixin(yes)->login_with_weixin->login
is_login_with_weixin(no)->login_with_alipay->login
login->whether_login_is_successful
whether_login_is_successful(yes)->buy
whether_login_is_successful(no)->whether_to_login_by_username
buy->end
```
Created with Raphaël 2.3.0 开始 是否以用户方式登录? 用户名密码登录 登录 登录是否成功? 抢购 结束 注册 注册是否成功? 用第三方登录 是否以微信方式登录? 微信登录 支付宝登录 yes no yes no yes no yes no

示例4

```mermaid
flowchat
start=>start: 开始
end=>end: 结束

login_with_username=>operation: 用户名密码登录
login_with_weixin=>operation: 微信登录
login_with_alipay=>operation: 支付宝登录
login_with_third=>operation: 用第三方登录
whether_login_is_successful=>condition: 登录是否成功?
whether_to_login_by_username=>condition: 是否以用户方式登录?
is_login_with_weixin=>condition: 是否以微信方式登录?
login=>operation: 用户登录
sigin_up=>operation: 注册
whether_sigin_up_is_successful=>condition: 注册是否成功?

buy=>operation: 抢购
Is_the_stock_sufficient=>condition: 库存是否充足?
lock_inventory=>operation: 锁定库存
prompt=>operation: 给出提示
pay=>operation: 支付
whether_to_pay_successfully=>condition: 支付是否成功?
reduce_inventory=>operation: 减库存
whether_it_is_more_than_two_hours=>condition: 是否超过两个小时?
release_inventory=>operation: 释放库存

start->whether_to_login_by_username
whether_to_login_by_username(yes)->login_with_username->login
whether_to_login_by_username(no)->is_login_with_weixin
is_login_with_weixin(yes)->login_with_weixin->login
is_login_with_weixin(no)->login_with_alipay->login
login->whether_login_is_successful
whether_login_is_successful(yes)->buy
whether_login_is_successful(no)->sigin_up
sigin_up->whether_sigin_up_is_successful
whether_sigin_up_is_successful(yes)->whether_to_login_by_username
whether_sigin_up_is_successful(no)->end
buy->Is_the_stock_sufficient
Is_the_stock_sufficient(yes)->lock_inventory
Is_the_stock_sufficient(no)->prompt->end
lock_inventory->pay->whether_to_pay_successfully
whether_to_pay_successfully(yes)->reduce_inventory->end
whether_to_pay_successfully(no)->whether_it_is_more_than_two_hours
whether_it_is_more_than_two_hours(yes)->release_inventory->end
whether_it_is_more_than_two_hours(no)->lock_inventory
```
Created with Raphaël 2.3.0 开始 是否以用户方式登录? 用户名密码登录 用户登录 登录是否成功? 抢购 库存是否充足? 锁定库存 支付 支付是否成功? 减库存 结束 是否超过两个小时? 释放库存 给出提示 注册 注册是否成功? 是否以微信方式登录? 微信登录 支付宝登录 yes no yes no yes no yes no yes no yes no yes no
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qwfys200

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值