red.go 521B

12345678910111213141516171819202122
  1. package fapiao
  2. func Red() (routerAddress string, postData map[string]interface{}) {
  3. routerAddress = "/tax-api/invoice/red/v1"
  4. invoices := make([]map[string]interface{}, 1)
  5. invoice := make(map[string]interface{})
  6. invoice["seller_taxpayer_num"] = "111112222233333"
  7. invoice["callback_url"] = "http://test.feehi.com/sign/mock/invoice-callback.php"
  8. invoice["order_sn"] = "6555407740980870214"
  9. invoices[0] = invoice
  10. postData = map[string]interface{}{
  11. "invoices": invoices,
  12. }
  13. return routerAddress, postData
  14. }