style: 清理 gofmt 偏差
纯对齐与行尾空行调整,无逻辑变更。gofmt -l 现输出为空, 配合 make fmt 可将格式检查直接纳入 CI。
This commit is contained in:
@@ -465,9 +465,9 @@ func TestFulfillmentCancelRejectedWhenSubmittedUpstream(t *testing.T) {
|
||||
// 已提交上游(provider_order_no 非空)的失败订单禁止取消,避免退款后上游仍发货。
|
||||
submitted := create("client-cancel-submitted")
|
||||
if err := db.Model(&model.FulfillmentOrder{}).Where("id = ?", submitted.ID).Updates(map[string]interface{}{
|
||||
"order_status": model.OrderStatusShipFailed,
|
||||
"order_status": model.OrderStatusShipFailed,
|
||||
"provider_order_no": "PROV-UPSTREAM-001",
|
||||
"failure_reason": "上游角色校验失败",
|
||||
"failure_reason": "上游角色校验失败",
|
||||
}).Error; err != nil {
|
||||
t.Fatalf("seed submitted failed order: %v", err)
|
||||
}
|
||||
|
||||
@@ -507,4 +507,3 @@ func (s *MerchantService) BatchSyncLewanProductsToCatalog(items []SyncLewanProdu
|
||||
}
|
||||
return count, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user