mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	支持DNSPod国际版
This commit is contained in:
		@@ -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).
 | 
			
		||||
 
 | 
			
		||||
@@ -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).
 | 
			
		||||
 
 | 
			
		||||
@@ -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 -->
 | 
			
		||||
 
 | 
			
		||||
@@ -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 -->
 | 
			
		||||
 
 | 
			
		||||
@@ -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 -->
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user