mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	调用自定义HTTP DNS时增加action(值为GetDomains)
This commit is contained in:
		@@ -55,7 +55,9 @@ func (this *CustomHTTPProvider) Auth(params maps.Map) error {
 | 
			
		||||
 | 
			
		||||
// GetDomains 获取所有域名列表
 | 
			
		||||
func (this *CustomHTTPProvider) GetDomains() (domains []string, err error) {
 | 
			
		||||
	resp, err := this.post(maps.Map{})
 | 
			
		||||
	resp, err := this.post(maps.Map{
 | 
			
		||||
		"action": "GetDomains",
 | 
			
		||||
	})
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user