支持DNSPod国际版

This commit is contained in:
GoEdgeLab
2022-03-30 09:12:16 +08:00
parent 32e41f5723
commit c415c36e86
5 changed files with 33 additions and 4 deletions

View File

@@ -60,8 +60,9 @@ func (this *CreatePopupAction) RunPost(params struct {
Type string
// DNSPod
ParamId string
ParamToken string
ParamId string
ParamToken string
ParamRegion string
// AliDNS
ParamAccessKeyId string
@@ -106,6 +107,7 @@ func (this *CreatePopupAction) RunPost(params struct {
apiParams["id"] = params.ParamId
apiParams["token"] = params.ParamToken
apiParams["region"] = params.ParamRegion
case "alidns":
params.Must.
Field("paramAccessKeyId", params.ParamAccessKeyId).

View File

@@ -89,8 +89,9 @@ func (this *UpdatePopupAction) RunPost(params struct {
Type string
// DNSPod
ParamId string
ParamToken string
ParamId string
ParamToken string
ParamRegion string
// AliDNS
ParamAccessKeyId string
@@ -137,6 +138,7 @@ func (this *UpdatePopupAction) RunPost(params struct {
apiParams["id"] = params.ParamId
apiParams["token"] = params.ParamToken
apiParams["region"] = params.ParamRegion
case "alidns":
params.Must.
Field("paramAccessKeyId", params.ParamAccessKeyId).

View File

@@ -41,6 +41,15 @@
<p class="comment">获取方法参考:<a href="https://docs.dnspod.cn/account/5f2d466de8320f1a740d9ff3/" target="_blank">文档</a> </p>
</td>
</tr>
<tr>
<td>区域</td>
<td>
<select class="ui dropdown auto-width" name="paramRegion">
<option value="">国内</option>
<option value="international">国际</option>
</select>
</td>
</tr>
</tbody>
<!-- AliDNS -->

View File

@@ -29,6 +29,13 @@
<td class="color-border">密钥Token</td>
<td>{{provider.apiParams.token}}</td>
</tr>
<tr>
<td class="color-border">区域</td>
<td>
<span v-if="provider.apiParams.region == 'international'">国际</span>
<span v-else>国内</span>
</td>
</tr>
</tbody>
<!-- AliDNS -->

View File

@@ -40,6 +40,15 @@
<p class="comment">获取方法参考:<a href="https://docs.dnspod.cn/account/5f2d466de8320f1a740d9ff3/" target="_blank">文档</a> </p>
</td>
</tr>
<tr>
<td>区域</td>
<td>
<select class="ui dropdown auto-width" name="paramRegion" v-model="provider.params.region">
<option value="">国内</option>
<option value="international">国际</option>
</select>
</td>
</tr>
</tbody>
<!-- AliDNS -->