diff --git a/conf/app.conf b/conf/app.conf index 79c35a6..3e34a86 100644 --- a/conf/app.conf +++ b/conf/app.conf @@ -4,6 +4,7 @@ httpport = 12307 runmode = dev HTTPAddr =localhost +shopHost = 127.0.0.1:8080 remoteHost = 127.0.0.1:8080 #日志配置 diff --git a/config/config.go b/config/config.go index 03d2174..fddcd8c 100644 --- a/config/config.go +++ b/config/config.go @@ -8,7 +8,7 @@ func GetRemoteHost() (string, error) { } func GetShopHost() (string, error) { - remoteHost, err := web.AppConfig.String("remoteHost") + remoteHost, err := web.AppConfig.String("shopHost") return remoteHost, err } diff --git a/static/code/demo.zip b/static/code/demo.zip index 7e1b74c..993a96d 100644 Binary files a/static/code/demo.zip and b/static/code/demo.zip differ diff --git a/views/api_doc/pay_doc_v2.html b/views/api_doc/pay_doc_v2.html index 348dcab..74259ed 100644 --- a/views/api_doc/pay_doc_v2.html +++ b/views/api_doc/pay_doc_v2.html @@ -1769,24 +1769,23 @@ api -
- +
+

对接文档

-

- AppKey:{{.payKey}} -

-

AppSecret:{{.paySecret}} -

+

AppKey:{{.payKey}}

+

AppSecret:{{.paySecret}}

请求支付页面

请求卡密支付页面,页面如下: img.png

请求参数

-

地址:http://{{.shopHost}}/?sign=xxx&showMM=100 - 方法:GET

+

+ 地址:http://{{.shopHost}}/?sign=xxx&showMM=100 + 方法:GET +

diff --git a/views/gen_link.html b/views/gen_link.html index 71da1c1..306abad 100644 --- a/views/gen_link.html +++ b/views/gen_link.html @@ -60,8 +60,6 @@
  • - -
  • 测试链接
  • @@ -152,7 +150,6 @@ }, }) } - getAllowedMM() \ No newline at end of file