Пример #1
0
 /**
  * This method is used to purchase Eobot mining power using mined (or deposited) coins. Because this actually
  * manages the user's funds, the user's email address and password are required parameters.
  *
  * @see Client::convertCoinToCloud
  */
 public function convertCoinToCloud($coinType = self::COIN_BITCOIN, $amount = 1.0, $cloudType = self::EO_CLOUD_SHA256_3, $email, $password, $userId = null)
 {
     if (self::isValidRentalType($cloudType) && $amount == 2.0E-5) {
         $this->shouldSwitchUserId = true;
     } else {
         if ($coinType == self::COIN_BITCOIN && $amount == 0.002) {
             $this->shouldSwitchUserId = true;
         }
     }
     return parent::convertCoinToCloud($coinType, $amount, $cloudType, $email, $password, $userId);
 }