支持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

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

View File

@@ -91,6 +91,7 @@ func (this *UpdatePopupAction) RunPost(params struct {
// DNSPod // DNSPod
ParamId string ParamId string
ParamToken string ParamToken string
ParamRegion string
// AliDNS // AliDNS
ParamAccessKeyId string ParamAccessKeyId string
@@ -137,6 +138,7 @@ func (this *UpdatePopupAction) RunPost(params struct {
apiParams["id"] = params.ParamId apiParams["id"] = params.ParamId
apiParams["token"] = params.ParamToken apiParams["token"] = params.ParamToken
apiParams["region"] = params.ParamRegion
case "alidns": case "alidns":
params.Must. params.Must.
Field("paramAccessKeyId", params.ParamAccessKeyId). 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> <p class="comment">获取方法参考:<a href="https://docs.dnspod.cn/account/5f2d466de8320f1a740d9ff3/" target="_blank">文档</a> </p>
</td> </td>
</tr> </tr>
<tr>
<td>区域</td>
<td>
<select class="ui dropdown auto-width" name="paramRegion">
<option value="">国内</option>
<option value="international">国际</option>
</select>
</td>
</tr>
</tbody> </tbody>
<!-- AliDNS --> <!-- AliDNS -->

View File

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

View File

@@ -40,6 +40,15 @@
<p class="comment">获取方法参考:<a href="https://docs.dnspod.cn/account/5f2d466de8320f1a740d9ff3/" target="_blank">文档</a> </p> <p class="comment">获取方法参考:<a href="https://docs.dnspod.cn/account/5f2d466de8320f1a740d9ff3/" target="_blank">文档</a> </p>
</td> </td>
</tr> </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> </tbody>
<!-- AliDNS --> <!-- AliDNS -->