Commit 49cf0d1b authored by shajiaming's avatar shajiaming

调整获取数量

parent f8c129cc
...@@ -16,7 +16,7 @@ class CrossChainController extends Controller ...@@ -16,7 +16,7 @@ class CrossChainController extends Controller
*/ */
public function actionAutoTransfer($step, $is_with_draw) public function actionAutoTransfer($step, $is_with_draw)
{ {
$model = CoinCrossChain::find()->where(['send_result' => "0", 'step' => (int)$step, 'is_with_draw' => (int)$is_with_draw])->limit(20)->asArray()->all(); $model = CoinCrossChain::find()->where(['send_result' => "0", 'step' => (int)$step, 'is_with_draw' => (int)$is_with_draw])->asArray()->all();
if (empty($model)) { if (empty($model)) {
echo date('Y-m-d H:i:s') . ' STEP: ' . $step . '暂无跨链交易计划' . PHP_EOL; echo date('Y-m-d H:i:s') . ' STEP: ' . $step . '暂无跨链交易计划' . PHP_EOL;
return 0; return 0;
...@@ -74,7 +74,7 @@ class CrossChainController extends Controller ...@@ -74,7 +74,7 @@ class CrossChainController extends Controller
public function actionQueryTransaction() public function actionQueryTransaction()
{ {
$redis = Yii::$app->redis; $redis = Yii::$app->redis;
$model = CoinCrossChain::find()->where(['<>', 'send_result', '0'])->andWhere(['msg' => '0'])->limit(20)->asArray()->all(); $model = CoinCrossChain::find()->where(['<>', 'send_result', '0'])->andWhere(['msg' => '0'])->asArray()->all();
if (empty($model)) { if (empty($model)) {
echo date('Y-m-d H:i:s') . '暂无跨链交易计划' . PHP_EOL; echo date('Y-m-d H:i:s') . '暂无跨链交易计划' . PHP_EOL;
......
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