|  | @@ -557,6 +557,28 @@ class Tool
 | 
	
		
			
				|  |  |          return 'ok';
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    # 更新合同内容
 | 
	
		
			
				|  |  | +    public function order_agreement_up_api()
 | 
	
		
			
				|  |  | +    {
 | 
	
		
			
				|  |  | +        $where['soft_cash'] = 1;
 | 
	
		
			
				|  |  | +        $data = Dever::db('agent/order')->getDataBySoft($where);
 | 
	
		
			
				|  |  | +        $test = Dever::input('test');
 | 
	
		
			
				|  |  | +        if ($data) {
 | 
	
		
			
				|  |  | +            if ($test == 1) {
 | 
	
		
			
				|  |  | +                print_r($data);die;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            foreach ($data as $k => $v) {
 | 
	
		
			
				|  |  | +                $info = Dever::db('agent/member_agreement')->find(array('order_id' => $v['id'], 'agreement_id' => 1));
 | 
	
		
			
				|  |  | +                if ($info) {
 | 
	
		
			
				|  |  | +                    Dever::load('agent/lib/agreement')->upContent($info['id']);
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        return 'ok';
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      # 更新业绩流水里的分组id
 | 
	
		
			
				|  |  |      public function upSell_api()
 | 
	
		
			
				|  |  |      {
 |