Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
10906afd97
2 changed files with 7 additions and 8 deletions
  1. +3
    -3
      card_pay/api.go
  2. +4
    -5
      meituan_fenxiao/api.go

+ 3
- 3
card_pay/api.go View File

@@ -21,7 +21,7 @@ const (
) )


func CardPaySend(method string, keyArr map[string]string, param map[string]string) (string, error) { func CardPaySend(method string, keyArr map[string]string, param map[string]string) (string, error) {
url := "http://test-efps.epaylinks.cn/" + method
url := "https://efps.epaylinks.cn/" + method
//https://efps.epaylinks.cn/ //https://efps.epaylinks.cn/
for key, value := range param { for key, value := range param {
if value == "" { if value == "" {
@@ -53,7 +53,7 @@ func CardPaySend(method string, keyArr map[string]string, param map[string]strin


} }
func CardPaySendSecond(method string, keyArr map[string]string, param map[string]interface{}) (string, error) { func CardPaySendSecond(method string, keyArr map[string]string, param map[string]interface{}) (string, error) {
url := "http://test-efps.epaylinks.cn/" + method
url := "https://efps.epaylinks.cn/" + method
//https://efps.epaylinks.cn/ //https://efps.epaylinks.cn/
for key, value := range param { for key, value := range param {
if value == "" { if value == "" {
@@ -85,7 +85,7 @@ func CardPaySendSecond(method string, keyArr map[string]string, param map[string


} }
func CardPayApplySend(method string, keyArr map[string]string, param map[string]string) (string, error) { func CardPayApplySend(method string, keyArr map[string]string, param map[string]string) (string, error) {
url := "http://test-efps.epaylinks.cn/" + method
url := "https://efps.epaylinks.cn/" + method
//https://efps.epaylinks.cn/ //https://efps.epaylinks.cn/
for key, value := range param { for key, value := range param {
if value == "" { if value == "" {


+ 4
- 5
meituan_fenxiao/api.go View File

@@ -2,7 +2,6 @@ package meituan_fenxiao


import ( import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/comm" "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/comm"
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/md"
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
"crypto/hmac" "crypto/hmac"
"crypto/md5" "crypto/md5"
@@ -57,11 +56,11 @@ func MeituanFenXiaoSend(method string, params map[string]interface{}) (string, e
} }
func MeituanFenXiaoGetSign(param map[string]interface{}) string { func MeituanFenXiaoGetSign(param map[string]interface{}) string {
str := "" str := ""
info, ok := param["geo"].(md.MeituanFenXiaoGeoInfo)
info, ok := param["geo"].(map[string]interface{})
if ok { if ok {
param["cityId"] = info.CityId
param["lat"] = info.Lat
param["lng"] = info.Lng
param["cityId"] = info["cityId"]
param["lat"] = info["lat"]
param["lng"] = info["lng"]
} }
delete(param, "geo") delete(param, "geo")
keys := comm.KsortToStrInterface(param) keys := comm.KsortToStrInterface(param)


Loading…
Cancel
Save