ソースを参照

更新

master
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)


読み込み中…
キャンセル
保存