|  | @@ -554,9 +554,9 @@ class Order
 | 
	
		
			
				|  |  |      private function show_button($process, $info, $role)
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  |          $button = array();
 | 
	
		
			
				|  |  | -        $cstatus = '';
 | 
	
		
			
				|  |  | +        $cstatus = ',cstatus';
 | 
	
		
			
				|  |  |          if ($role['soft'] && $role['soft'] && $info['price'] > 0 && $info['status'] > 1) {
 | 
	
		
			
				|  |  | -            $cstatus = ',cstatus';
 | 
	
		
			
				|  |  | +            //$cstatus = ',cstatus';
 | 
	
		
			
				|  |  |              //$soft = '【<a href="" style="color:blue">拆分代理费</a>】';
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -579,7 +579,16 @@ class Order
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          if ($info['status'] == 1) {
 | 
	
		
			
				|  |  | -            $purl = Dever::url('project/database/update?project=agent&table=order_process&order_id='.$info['id'].'&status=1&col=order_id,status,audit,desc', 'manage');
 | 
	
		
			
				|  |  | +            # 根据价值获取名额
 | 
	
		
			
				|  |  | +            $prize = Dever::db('setting/prize')->find(array('type' => 1, 'price' => $info['price']));
 | 
	
		
			
				|  |  | +            if ($prize) {
 | 
	
		
			
				|  |  | +                $member_goods = Dever::db('agent/member_goods')->getOne(array('mid' => $info['mid'], 'type' => 3, 'type_id' => $prize['id']));
 | 
	
		
			
				|  |  | +                if ($member_goods && $member_goods['num'] > 0) {
 | 
	
		
			
				|  |  | +                    # 有名额
 | 
	
		
			
				|  |  | +                    $cstatus = ',prize_type';
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            $purl = Dever::url('project/database/update?project=agent&table=order_process&order_id='.$info['id'].'&status=1&col=order_id,status,audit,price,desc'.$cstatus.'&price='.$info['price'], 'manage');
 | 
	
		
			
				|  |  |              if (isset($process[1]) && $process[1]) {
 | 
	
		
			
				|  |  |                  $purl .= '&where_id=' . $process[1]['id'];
 | 
	
		
			
				|  |  |              }
 | 
	
	
		
			
				|  | @@ -590,16 +599,8 @@ class Order
 | 
	
		
			
				|  |  |                  'name' => '业务初审',
 | 
	
		
			
				|  |  |              );
 | 
	
		
			
				|  |  |          } elseif ($info['status'] == 2) {
 | 
	
		
			
				|  |  | -            # 根据价值获取名额
 | 
	
		
			
				|  |  | -            $prize = Dever::db('setting/prize')->find(array('type' => 1, 'price' => $info['price']));
 | 
	
		
			
				|  |  | -            if ($prize) {
 | 
	
		
			
				|  |  | -                $member_goods = Dever::db('agent/member_goods')->getOne(array('mid' => $info['mid'], 'type' => 3, 'type_id' => $prize['id']));
 | 
	
		
			
				|  |  | -                if ($member_goods && $member_goods['num'] > 0) {
 | 
	
		
			
				|  |  | -                    # 有名额
 | 
	
		
			
				|  |  | -                    $cstatus = ',prize_type';
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            $purl = Dever::url('project/database/update?project=agent&table=order_process&order_id='.$info['id'].'&status=2&col=order_id,status,audit,price,desc'.$cstatus.'&price='.$info['price'], 'manage');
 | 
	
		
			
				|  |  | +            
 | 
	
		
			
				|  |  | +            $purl = Dever::url('project/database/update?project=agent&table=order_process&order_id='.$info['id'].'&status=2&col=order_id,status,audit,desc', 'manage');
 | 
	
		
			
				|  |  |              if (isset($process[2]) && $process[2]) {
 | 
	
		
			
				|  |  |                  $purl .= '&where_id=' . $process[2]['id'];
 | 
	
		
			
				|  |  |              }
 |