Commit a33509b9 authored by shajiaiming's avatar shajiaiming

rollback

parent 862de68b
...@@ -87,7 +87,7 @@ class CrossChainController extends Controller ...@@ -87,7 +87,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(['id' => 1603])->andWhere(['msg' => '0'])->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;
...@@ -110,13 +110,7 @@ class CrossChainController extends Controller ...@@ -110,13 +110,7 @@ class CrossChainController extends Controller
// 'port' => 8801 // 'port' => 8801
// ]; // ];
$service = new Chain33Service($node_params); $service = new Chain33Service($node_params);
$execer = 'paracross'; $result = $service->getHeight();
$funcName = 'GetHeight';
$param = [
"data" => 'user.p.' . 'game' . '.',
];
$result = $service->chainQuery($execer, $funcName, $param);
echo json_encode($result);exit;
$consensHeight = $result['result']['consensHeight']; $consensHeight = $result['result']['consensHeight'];
$current_time = time(); $current_time = time();
......
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