countcode.go 810 B

12345678910111213141516171819202122232425262728
  1. package utils
  2. import (
  3. "context"
  4. "fmt"
  5. "gd_gateway/apis"
  6. "gd_gateway/rpc_apis_v1"
  7. )
  8. // TODO 没有注释
  9. func ManagementCheckCountCode(merchantApiResult apis.CheckMerchantApiResult, errCode int) error {
  10. /*if accessCountId <= 0 {
  11. return nil
  12. }*/
  13. req := apis.ManagementCheckCountCodeReq{
  14. CountType: merchantApiResult.CountType,
  15. AccessCountId: merchantApiResult.AccessCountId,
  16. CountCode: merchantApiResult.CountCode,
  17. Code: fmt.Sprintf("%d", errCode),
  18. MerchantDataApiId: merchantApiResult.MerchantDataApiId,
  19. MerchantId: merchantApiResult.MerchantId,
  20. UnitPrice: merchantApiResult.UnitPrice,
  21. FeeType: merchantApiResult.FeeType,
  22. }
  23. _, err := rpc_apis_v1.AuthCheck.ManagementCheckCountCode(context.Background(), &req)
  24. return err
  25. }