第三方api接口
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.

20 lines
520 B

  1. package jdSdk
  2. import "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/comm"
  3. func init() {
  4. comm.JDAppKey = "444ab671c4d095122916453d09af27fc"
  5. comm.JDAppSecret = "aef3c2745cc44194816d0c89c65b3847"
  6. comm.JDVersion = "1.0"
  7. comm.JDRouter = "https://router.jd.com/api"
  8. comm.JDSdkRouter = "https://router.jdSdk.com/api"
  9. }
  10. func send(method string, args map[string]interface{}) ([]byte, error) {
  11. result, err := comm.Execute(method, args)
  12. if err != nil {
  13. return nil, err
  14. }
  15. return result.MarshalJSON()
  16. }