2.0订单rpc数据结构
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
487 B

  1. package orderrpcv2
  2. import (
  3. "testing"
  4. )
  5. func Test_Payed(t *testing.T) {
  6. payData := map[string]interface{}{
  7. "pay_type": "wechat",
  8. "pay_method": "jsapi",
  9. "order_sn": "2163040248896658",
  10. "payment_sn": "ddddd",
  11. "payer_total": 17.66,
  12. "total": 33.33, //单位转为元
  13. "user_openid": "adfawrkepoieirpwoer",
  14. "user_id": "55",
  15. "success_time": "2021-10-12 10:20:30",
  16. }
  17. ret, err := Payed("shop_v2", "miniapp", payData)
  18. t.Log(ret)
  19. t.Log(err)
  20. }