huangjiajun пре 1 година
родитељ
комит
10906afd97
2 измењених фајлова са 7 додато и 8 уклоњено
  1. +3
    -3
      card_pay/api.go
  2. +4
    -5
      meituan_fenxiao/api.go

+ 3
- 3
card_pay/api.go Прегледај датотеку

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

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/
for key, value := range param {
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) {
url := "http://test-efps.epaylinks.cn/" + method
url := "https://efps.epaylinks.cn/" + method
//https://efps.epaylinks.cn/
for key, value := range param {
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) {
url := "http://test-efps.epaylinks.cn/" + method
url := "https://efps.epaylinks.cn/" + method
//https://efps.epaylinks.cn/
for key, value := range param {
if value == "" {


+ 4
- 5
meituan_fenxiao/api.go Прегледај датотеку

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

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/md"
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
"crypto/hmac"
"crypto/md5"
@@ -57,11 +56,11 @@ func MeituanFenXiaoSend(method string, params map[string]interface{}) (string, e
}
func MeituanFenXiaoGetSign(param map[string]interface{}) string {
str := ""
info, ok := param["geo"].(md.MeituanFenXiaoGeoInfo)
info, ok := param["geo"].(map[string]interface{})
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")
keys := comm.KsortToStrInterface(param)


Loading…
Откажи
Сачувај