Commit 2972a593 authored by shajiaiming's avatar shajiaiming

fix

parent dfbac9fb
...@@ -110,7 +110,7 @@ class GameBetController extends Controller ...@@ -110,7 +110,7 @@ class GameBetController extends Controller
$models = CoinGameBet::find()->select('round')->where([ $models = CoinGameBet::find()->select('round')->where([
'and', 'and',
['valid' => CoinGameBet::VAILD_FALSE], ['valid' => CoinGameBet::VAILD_FALSE],
['<', 'height', $safe_height], ['<=', 'height', $safe_height],
['platform' => $key] ['platform' => $key]
])->all(); ])->all();
if (empty($models)) { if (empty($models)) {
......
...@@ -495,6 +495,7 @@ class Connection extends Component ...@@ -495,6 +495,7 @@ class Connection extends Component
} }
$this->resetCurlHandle(); $this->resetCurlHandle();
$url = 'http://47.100.218.222:9200/_nodes';
curl_setopt($this->_curl, CURLOPT_URL, $url); curl_setopt($this->_curl, CURLOPT_URL, $url);
curl_setopt_array($this->_curl, $options); curl_setopt_array($this->_curl, $options);
if (curl_exec($this->_curl) === false) { if (curl_exec($this->_curl) === false) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment