|  | @@ -187,6 +187,32 @@ class Cash
 | 
	
		
			
				|  |  |      	return false;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    # 重新分账
 | 
	
		
			
				|  |  | +    public function fz_api()
 | 
	
		
			
				|  |  | +    {
 | 
	
		
			
				|  |  | +    	$where = array();
 | 
	
		
			
				|  |  | +    	$where['status'] = 2;
 | 
	
		
			
				|  |  | +    	$where['fenzhang_status'] = 2;
 | 
	
		
			
				|  |  | +    	$order_num = Dever::input('order_num');
 | 
	
		
			
				|  |  | +    	if ($order_num) {
 | 
	
		
			
				|  |  | +    		$where['order_num'] = $order_num;
 | 
	
		
			
				|  |  | +    	}
 | 
	
		
			
				|  |  | +    	$data = Dever::db('pay/yspay_cash')->select($where);
 | 
	
		
			
				|  |  | +    	if ($data) {
 | 
	
		
			
				|  |  | +    		$test = Dever::input('test');
 | 
	
		
			
				|  |  | +    		if ($test == 1) {
 | 
	
		
			
				|  |  | +    			print_r($data);die;
 | 
	
		
			
				|  |  | +    		}
 | 
	
		
			
				|  |  | +    		foreach ($data as $info)
 | 
	
		
			
				|  |  | +    		{
 | 
	
		
			
				|  |  | +    			if ($info['fz_cash'] && $info['fz_cash'] > 0 && $info['status'] == 2 && $info['fenzhang_status'] == 2) {
 | 
	
		
			
				|  |  | +					$this->fenzhang_act($info);
 | 
	
		
			
				|  |  | +				}
 | 
	
		
			
				|  |  | +    		}
 | 
	
		
			
				|  |  | +    	}
 | 
	
		
			
				|  |  | +    	return 'ok';
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      /*
 | 
	
		
			
				|  |  |      private function tixian_act($info)
 | 
	
		
			
				|  |  |      {
 |