闪行生活 · 海外本地生活服务平台建设方案 ShanXing Life · Overseas Local-Life Platform Solution SOLUTION PROPOSAL · BILINGUAL · V1.0
实时切换Instant switch
01
BUSINESS FLOWS

业务流程Business Flows

六端不是六个孤立应用,而是围绕同一订单与同一笔资金的六个视角。以下按业务蓝图、统一订单、各业务线、资金链路与异常闭环依次展开。The six clients are six views of one order and one payment, not six isolated apps. This section covers the blueprint, unified order, each business line, the money chain and exception handling.

2.1 业务蓝图:一套底座,六端协同2.1 Blueprint: one foundation, six clients

平台以「统一订单中心」承接所有业务线,以「调度与履约中心」连接司机、骑手与商户,以「资金账本」承接支付、分账、结算与提现。需求端的高频出行 / 外卖为供给端带来密度,密度又反哺履约时效与价格竞争力。All business lines feed the unified order center; dispatch and fulfillment connect drivers, riders and merchants; the ledger handles payment, split, settlement and payout. High-frequency demand creates supply density, which improves ETA and price competitiveness.

flowchart LR
  subgraph DEMAND["需求端 Demand"]
    U["用户 App
Consumer"] end subgraph SUPPLY["供给端 Supply"] DR["司机 Driver"] RI["骑手 Rider"] ME["商户 Merchant"] PA["股东 Partner"] end subgraph CORE["平台核心 Platform Core"] O["统一订单
Order Hub"] DI["调度履约
Dispatch"] PAY["支付网关
Payments"] L["资金账本
Ledger"] A["运营后台
Admin"] end U --> O O --> DI DI --> DR DI --> RI ME --> O DR --> DI RI --> DI O --> PAY PAY --> L L --> PA O --> A
图 1-1 需求、供给、履约与资金在同一平台上闭环。Demand, supply, fulfillment and money close the loop on one platform.

2.2 统一订单与状态机2.2 Unified order and state machine

所有业务共用一张主订单,记录用户、金额、支付方式、渠道与统一状态;各业务再挂一张业务子单承载差异字段。这样既能统一支付、售后与报表,又能保留业务细节。Every business shares one main order holding user, amount, payment mode, channel and unified status; a business sub-order carries category-specific fields. This unifies payment, after-sales and reporting while preserving detail.

状态 Status含义 Meaning可执行动作 Allowed actions
CREATED订单已创建,尚未提交支付Created, payment not submitted编辑、取消、发起支付Edit, cancel, initiate payment
PENDING_PAY待支付 / 线下待收款Awaiting payment or offline collection支付、取消、超时关闭Pay, cancel, timeout close
PAID线上已托管 / 线下已登记Escrowed online or registered offline等待接单、申请退款Await acceptance, request refund
ACCEPTED司机 / 骑手 / 商户已接单Driver, rider or merchant accepted按规则取消、开始履约Cancel per rules, start fulfillment
IN_PROGRESS行程中 / 配送中 / 服务中On trip, delivering or in service轨迹上报、联系对方、异常上报Track, contact, report exception
COMPLETED履约完成并触发分账Fulfilled and split triggered评价、开票、售后Rate, invoice, after-sales
AFTER_SALE退款 / 投诉 / 理赔处理中Refund, complaint or claim in progress补录、冲正、部分退款Adjust, reverse, partial refund
边界原则Boundary rule
订单状态只允许订单服务写入,其他服务通过事件订阅响应;所有资金写操作必须幂等并携带业务单号,禁止跨服务直连数据库。Only the order service mutates order state; others react via events. Every money write is idempotent with a business number; cross-service direct database access is forbidden.

2.3 出行:打车全流程2.3 Ride-hailing end to end

出行链路最长、实时性最强:起终点与车型、预估价、支付方式、派单、接驾、乘客验证、行程、计费、支付与评价。线上托管与线下收款在同一订单上分叉,最终回到统一结算。Ride-hailing has the longest real-time chain: pickup and drop-off, service type, fare estimate, payment mode, dispatch, pickup, passenger verification, trip, fare, payment and rating. Online escrow and offline collection diverge on one order but converge into one settlement.

flowchart TD
  A["选起终点
Pickup & drop-off"] --> B["车型与预估价
Service & fare"] B --> C{"支付方式
Payment mode"} C -->|Online| D["托管冻结
Escrow hold"] C -->|Offline| E["生成应收
Receivable"] D --> F["派单扩圈
Dispatch"] E --> F F --> G["司机接单
Driver accepts"] G --> H["接驾与验证
Pickup & verify"] H --> I["行程与计费
Trip & fare"] I --> J{"线上支付
Online paid"} J -->|Yes| K["自动扣款分账
Charge & split"] J -->|No| L["确认收款登记
Register cash"] K --> M["完成与评价
Complete & rate"] L --> M
图 1-2 打车主流程:三种支付方式共用一条订单与结算链路。Ride flow: all payment modes share one order and settlement chain.

派单策略Dispatch policy

距离、顺路度、评分、空闲时长、接单率加权;首轮 3km,60 秒无应答逐轮扩圈并可触发动态加价。Weighted by distance, route fit, rating, idle time and acceptance rate; 3 km first round, expand after 60 seconds, optional surge.

安全能力Safety

行程分享、紧急联系人、一键求助、路线偏移与长时间停留提醒、录音授权(按市场法规)。Trip sharing, emergency contacts, one-tap help, route-deviation and dwell alerts, recording consent by market law.

计费规则Pricing

起步价 + 里程费 + 时长费 + 动态调价 + 路桥费 − 优惠;规则按城市、车型、时段版本化。Base + distance + time + surge + tolls − discounts; versioned by city, service type and time window.

2.4 外卖与同城配送2.4 Delivery and same-city fulfillment

外卖涉及用户、商户、骑手三方协同,关键控制点是「商户接单时效」与「取餐码校验」。任一环节超时都应自动升级:商户超时未接单自动取消并退款;取餐码错误拦截重输;配送超时触发补偿与客服工单。Delivery coordinates user, merchant and rider. The control points are merchant acceptance time and pickup-code verification. Timeouts escalate automatically: merchant timeout auto-cancels and refunds; wrong pickup codes are blocked; late delivery triggers compensation and a support ticket.

flowchart TD
  A["选店加购
Browse & cart"] --> B["确认地址与优惠
Checkout"] B --> C["支付下单
Pay & order"] C --> D{"商户接单
Merchant accepts"} D -->|Timeout| X["自动取消退款
Auto refund"] D -->|Accept| E["出餐
Prepare"] E --> F["骑手抢单
Rider accepts"] F --> G["取餐码校验
Pickup code"] G --> H["配送与轨迹
Deliver & track"] H --> I["送达结算
Delivered & settled"]
图 1-3 外卖流程:接单、取餐码与送达结算是三个关键控制点。Delivery flow with three control points: acceptance, pickup code and delivery settlement.
环节 Stage角色 Actor规则 Rule异常处理 Exception
接单Accept商户Merchant默认 5 分钟内接单,可配置自动接单Accept within 5 minutes by default; auto-accept configurable超时自动取消并全额退款,计入履约分Auto-cancel and fully refund; affects fulfillment score
出餐Prepare商户Merchant点击出餐后进入骑手可抢池After marking ready, enters the rider pool长时间未出餐提醒并转客服Reminder then support intervention
取餐Pickup骑手Rider核对 4 位取餐码,错误 3 次锁定Verify 4-digit code; lock after 3 failures异常上报,人工核验Report exception for manual review
送达Deliver骑手 / 用户Rider / user确认送达触发骑手收入与商户分账Confirmation triggers rider income and merchant split未收到餐进入售后并冻结分账After-sales freezes the split

2.5 到店、租车与物流用车2.5 Dine-in, rental and logistics

到店餐饮:线上预付 + 到店核销Dine-in: prepay and redeem

用户选套餐或买单 → 支付生成券码 → 门店扫码 / 输码核销 → 校验有效性 → 计入营业额并按规则分账。线下到店付生成「待收款」订单,由门店确认后完成。Select a package → pay and receive a code → merchant scans or enters it → validation → revenue and split. Offline dine-in creates a receivable order confirmed by the store.

租车:库存 + 押金 + 车况Rental: inventory, deposit and condition

选门店与车型 → 实时库存锁定 → 租金与押金 → 取车验车 → 用车 → 还车验车 → 扣减费用与退还押金 → 车主分账。Store and model → lock inventory → rent and deposit → pickup inspection → use → return inspection → deduct fees and refund deposit → owner split.

物流用车:车型 + 里程 + 附加服务Logistics: vehicle, distance and add-ons

发货地 / 收货地 → 小面 / 中面 / 厢货 → 搬运、跟车、回单 → 预估价 → 司机接单 → 装卸 → 签收 → 线上或货到付款。Pickup and drop-off → van / truck type → moving, escort, proof of delivery → estimate → driver accepts → load/unload → sign → prepaid or cash on delivery.

2.6 入驻与审核2.6 Onboarding and review

司机、商户、股东三类主体共用「申请 → 资质 → 审核 → 签约 → 开通」流程,但资质清单与审核要点不同。证照 OCR、背景调查、电子签约与账号开通必须留痕。Drivers, merchants and partners share one flow — apply, documents, review, contract, enable — with different checklists and review focus. OCR, background checks, e-signature and account activation must be auditable.

主体 Entity必备资质 Required documents审核要点 Review focus开通结果 Outcome
司机Driver身份证 / 护照、驾照、行驶证、保险、背景调查ID/passport, license, vehicle registration, insurance, background check证照有效期、驾龄、无重大违章、车辆合规Validity, driving years, violation history, vehicle compliance司机账号、听单权限、车辆绑定Driver account, offer access, vehicle binding
商户Merchant营业执照、行业许可、门店照片、收款账户Business license, sector permit, store photos, settlement account主体一致性、经营范围、门店真实存在Entity consistency, business scope, physical existence商户账号、门店上线、商品发布Merchant account, store live, product publishing
股东 / 合伙人Partner身份证明、公司注册文件、投资合同、资金来源Identity, company registration, investment contract, source of funds资金来源、合同条款、分账比例Source of funds, contract terms, split ratio股东账号、门店 / 车辆关联、分红规则Partner account, store/vehicle links, dividend rules

2.7 资金链路:支付、分账、结算、对账2.7 Money chain: pay, split, settle, reconcile

资金是本项目的中枢。原则是:所有资金变动都必须有业务单据、都必须走复式记账、都必须可对账。线上支付进入托管账户,订单完成后按规则生成分账;线下收款由司机 / 商户确认,平台记账应收佣金并从钱包抵扣。Money is the core. Three rules: every movement has a business document, every movement is double-entry, and everything reconciles. Online payments enter escrow and split on completion; offline collections are confirmed in-app, with commission receivable offset from the wallet.

flowchart TD
  A["订单完成
Order completed"] --> B["匹配分账规则
Match split rule"] B --> C["生成分账明细
Order split"] C --> D["写入复式分录
Double entries"] D --> E["平台与受益方账户
Platform & beneficiaries"] E --> F["生成结算单
Settlement bill"] F --> G["提现申请
Payout"] G --> H["风控与打款
Risk & transfer"] H --> I["日终三方对账
Daily reconciliation"] I -->|差异| J["差异单与冲正
Diff & reversal"] I -->|一致| K["归档与报表
Archive & reports"]
图 1-4 资金主链路:订单 → 分账 → 分录 → 结算 → 提现 → 对账。Order → split → entries → settlement → payout → reconciliation.
业务 Business平台 Platform股东 / 车主 Partner履约方 Provider说明 Note
出行Ride12%18%司机 70%Driver 70%按城市与车型可配置Configurable by city and service type
到店Dine-in8%—门店 92%Store 92%线上预付与到店付同比例Same for prepaid and pay-at-store
外卖Delivery10–15%—商户 + 骑手配送费Merchant + rider fee佣金与配送费分开计价Commission and delivery fee priced separately
租车Rental12%车主 88%Owner 88%门店运营成本另计Store costs accounted separately
物流 / 代驾Logistics / designated12%—司机 88%Driver 88%附加服务单独分账Add-on services split separately

分账比例以原型展示为基准,落地时写入 split_rule 配置表,按业务、城市、股东等级与时间段版本化,禁止硬编码。Ratios follow the prototype and must live in split_rule, versioned by business, city, partner tier and time window — never hard-coded.

线上支付Online

用户支付 → 平台托管(T+0 冻结)→ 履约完成 → 自动分账 → 司机 / 骑手 T+0 入账 → 提现 T+1 到账 → 日终对账。Pay → escrow (T+0 hold) → fulfillment → auto split → driver/rider credit T+0 → payout T+1 → daily reconciliation.

线下支付Offline

下单生成应收 → 现金 / 转账给司机或门店 → 端内确认收款 → 平台记应收佣金 → 钱包抵扣或账单扣款 → 日终核对。Order creates receivable → cash/transfer to driver or store → in-app confirmation → commission receivable → wallet offset or billing → daily check.

2.8 异常与风控闭环2.8 Exceptions and risk control

本地生活的利润常被异常单吃掉。必须把超时、爽约、线下未登记、分账差异、拒付与刷单纳入统一风控,形成「监测 → 拦截 → 处理 → 复盘」闭环。Margins are often consumed by exception orders. Timeouts, no-shows, unregistered offline payments, split variances, chargebacks and fraud must enter one risk loop: detect, block, handle, review.

异常 Exception触发条件 Trigger处置动作 Action影响 Impact
支付超时Payment timeout下单 15 分钟未支付Unpaid 15 minutes after order自动取消并释放车辆 / 库存Auto-cancel and release vehicle/inventory无资金损失No financial loss
司机 / 骑手爽约Provider no-show接单后超时未到达或取消Late arrival or cancellation after acceptance扣服务分、限制听单、补偿用户Deduct score, restrict offers, compensate user履约率下降Lower fulfillment rate
线下未登记Unregistered offline完成 24h 未确认收款No collection confirmation within 24h提醒,超时冻结提现Remind, then freeze payout佣金应收挂账Commission receivable outstanding
分账差异Split variance分账金额与规则不一致Split amount differs from rule生成差异单,人工复核并冲正Create variance ticket, review and reverse对账不收敛Reconciliation does not converge
拒付 / 争议Chargeback持卡人发起拒付Cardholder disputes a charge冻结相关结算,提交证据,必要时扣回Freeze settlement, submit evidence, claw back if needed资金损失与渠道罚分Loss and acquirer penalties
刷单 / 套利Fraud / arbitrage同设备、同 IP、异常频次、优惠叠加异常Same device/IP, abnormal frequency, coupon stacking风控名单、取消奖励、限制下单Watchlist, revoke rewards, restrict ordering营销费用浪费Wasted marketing spend
风控阈值建议Suggested thresholds
同一用户 24h 取消 ≥ 5 次进入观察名单;司机连续差异 ≥ 3 笔限制提现;同一设备 7 天注册 ≥ 3 个账号触发人工审核;单用户单日核销券 ≥ 10 张自动拦截。阈值全部配置化,可按城市调整。A user with 5+ cancellations in 24h enters watchlist; a driver with 3+ consecutive variances has payout restricted; 3+ accounts on one device in 7 days triggers review; 10+ coupons redeemed by one user per day is blocked. All thresholds are configurable by city.