fix: test Execute param data type is map[string]interface{}
This commit is contained in:
		
							parent
							
								
									7f42baaa23
								
							
						
					
					
						commit
						e0429c02c1
					
				@ -22,7 +22,7 @@ type Toutiao struct {
 | 
			
		||||
	Task
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (tt *Toutiao) Execute(data interface{}) ITask {
 | 
			
		||||
func (tt *Toutiao) Execute(data map[string]interface{}) ITask {
 | 
			
		||||
	resp, err := tt.Request()
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		panic(err)
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
mode : 0
 | 
			
		||||
# proxies : "socks5://10.10.10.1:8080" // 支持, 列表 与 单项字符串
 | 
			
		||||
proxies : ["socks5://10.10.10.1:8080", "socks5://10.10.10.1:8082", "socks5://10.10.10.1:8083", "socks5://10.10.10.1:8085", "socks5://10.10.10.1:8087", "socks5://10.10.10.1:8088", "socks5://10.10.10.1:8089", "socks5://10.10.10.1:8090"]
 | 
			
		||||
proxies : []
 | 
			
		||||
retry : 0
 | 
			
		||||
timeout: 12
 | 
			
		||||
priority : 10000
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user