|  | @@ -57,6 +57,27 @@ class Merchant
 | 
	
		
			
				|  |  |          return false;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    public function getOther($account_id, $table, $relate_id, $order_num, $cash)
 | 
	
		
			
				|  |  | +    {
 | 
	
		
			
				|  |  | +        $result = array();
 | 
	
		
			
				|  |  | +        $yspay = Dever::db('pay/yspay')->find(array('account_id' => $account_id));
 | 
	
		
			
				|  |  | +        if ($cash && $cash > 0 && $yspay && $yspay['type'] == 2) {
 | 
	
		
			
				|  |  | +            # 分账拆单
 | 
	
		
			
				|  |  | +            $project = Dever::db('pay/yspay_project')->find(array('table' => $table));
 | 
	
		
			
				|  |  | +            if ($project) {
 | 
	
		
			
				|  |  | +                $merchant = Dever::db('pay/yspay_merchant')->find(array('account_id' => $account_id, 'project_id' => $project['id'], 'relate_id' => $relate_id));
 | 
	
		
			
				|  |  | +                if ($merchant && $merchant['mid']) {
 | 
	
		
			
				|  |  | +                    $result = array(
 | 
	
		
			
				|  |  | +                        'mid' => $merchant['mid'],
 | 
	
		
			
				|  |  | +                        'order_id' => $order_num,
 | 
	
		
			
				|  |  | +                        'amount' => $cash,
 | 
	
		
			
				|  |  | +                    );
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return $result;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      public function getInfo($account_id, $project_id, $id, $parent)
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  |          list($project, $table) = explode('/', $parent);
 |