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