| 
						
						
							
								
							
						
						
					 | 
					@ -185,6 +185,7 @@ func (this *Seckill) MakeReserve() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						} | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					} | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					// 获取抢购链接
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					func (this *Seckill) getSeckillUrl() (string, error) { | 
					 | 
					 | 
					func (this *Seckill) getSeckillUrl() (string, error) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						skuId := this.conf.MustValue("config", "sku_id", "") | 
					 | 
					 | 
						skuId := this.conf.MustValue("config", "sku_id", "") | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						req := httpc.NewRequest(this.client) | 
					 | 
					 | 
						req := httpc.NewRequest(this.client) | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -272,7 +273,11 @@ func (this *Seckill) SeckillInitInfo() (string, error) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								log.Println("获取秒杀初始化信息成功") | 
					 | 
					 | 
								log.Println("获取秒杀初始化信息成功") | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								return body, nil | 
					 | 
					 | 
								return body, nil | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} else { | 
					 | 
					 | 
							} else { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
								if len(body) < 200 { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									log.Println("获取秒杀初始化信息失败,返回信息:" + body) | 
					 | 
					 | 
									log.Println("获取秒杀初始化信息失败,返回信息:" + body) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
								} else { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
									log.Println("获取秒杀初始化信息失败,返回信息: 网页") | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
								} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								errorMsg = body | 
					 | 
					 | 
								errorMsg = body | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							errorCount = errorCount - 1 | 
					 | 
					 | 
							errorCount = errorCount - 1 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |