🐛修复链接添加不到的bug

This commit is contained in:
sunxiaolong
2024-01-17 22:27:36 +08:00
parent 919db2edeb
commit bc308688db
5 changed files with 10 additions and 13 deletions

View File

@@ -4,6 +4,7 @@ httpport = 12307
runmode = dev
HTTPAddr =localhost
shopHost = 127.0.0.1:8080
remoteHost = 127.0.0.1:8080
#日志配置

View File

@@ -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
}

Binary file not shown.

View File

@@ -1769,24 +1769,23 @@
<title>api</title>
</head>
<body class='typora-export os-windows'>
<div style="float: right">
<input type="button" value="获取示例代码" onclick="openSource">
<div style="float: right; margin-top: 50px; margin-right: 50px">
<input type="button" value="获取示例代码" onclick="openSource()">
</div>
<div class='typora-export-content'>
<div class='' id='write'><h1 id='对接文档'><span>对接文档</span></h1>
<blockquote>
<p>
<span>AppKey</span><strong><span>{{.payKey}}</span></strong>
</p>
<p><span>AppSecret:</span><strong><span>{{.paySecret}}</span></strong>
</p>
<p><span>AppKey</span><strong><span>{{.payKey}}</span></strong></p>
<p><span>AppSecret:</span><strong><span>{{.paySecret}}</span></strong></p>
</blockquote>
<h3 id='请求支付页面'><span>请求支付页面</span></h3>
<p><span>请求卡密支付页面,页面如下:</span>
<img alt="img.png" referrerpolicy="no-referrer" src="img/AB4467C3-FA86-069A-99BB-C3997694311C.png"></p><h4
id='请求参数-1'><span>请求参数</span></h4>
<p><span>地址:</span><a class='url' href='http://{{.shopHost}}/?sign=xxx&amp;showMM=100' target='_blank'>http://{{.shopHost}}/?sign=xxx&showMM=100</a>
<span>方法GET</span></p>
<p>
<span>地址:</span><a class='url' href='http://{{.shopHost}}/?sign=xxx&amp;showMM=100' target='_blank'>http://{{.shopHost}}/?sign=xxx&showMM=100</a>
<span>方法GET</span>
</p>
<figure>
<table>
<thead>

View File

@@ -60,8 +60,6 @@
</ul>
</li>
<li>
<!-- <a href="{{.payLink}}" style="color: black;" target="_blank"><i-->
<!-- class="external-link"></i>支付链接</a></li>-->
<li><a href="/gen_link/gen_link">测试链接</a></li>
</ul>
@@ -152,7 +150,6 @@
},
})
}
getAllowedMM()
</script>
</html>