dtm-php / dtm-client

A PHP coroutine client for distributed transaction manager DTM. 分布式事务管理器 DTM 的 PHP 协程客户端
MIT License
342 stars 42 forks source link

[BUG]fix saga enableConcurrent without addBranchOrder bug #61

Closed alwaysLinger closed 1 year ago

alwaysLinger commented 1 year ago

In saga mode, with concurrent enabled but without branch orders set. orders => [] will be sent to DTM which is imcompatible with golang struct. So just simply send orders => null when no orders get set.

type cSagaCustom struct { Orders map[int][]int json:"orders" Concurrent bool json:"concurrent" cOrders map[int][]int }

alwaysLinger commented 1 year ago

dtm version: 1.17.1