|  | @@ -79,7 +79,12 @@ class Member_set
 | 
	
		
			
				|  |  |                      Dever::db('agent/member_goods')->update(array('where_id' => $info['id'], 'state' => 2));
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  | -                $w['total_num'] = $v['total'];
 | 
	
		
			
				|  |  | +                if ($info) {
 | 
	
		
			
				|  |  | +                    $w['total_num'] = $info['total_num'] - $info['sell_num'] + $v['total'];
 | 
	
		
			
				|  |  | +                } else {
 | 
	
		
			
				|  |  | +                    $w['total_num'] = $v['total'];
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                
 | 
	
		
			
				|  |  |                  $cash = $price = 0;
 | 
	
		
			
				|  |  |                  
 | 
	
		
			
				|  |  |                  if ($type == 1) {
 |