Commit 74e9dc2c authored by shajiaiming's avatar shajiaiming

debug

parent 5da59ad8
...@@ -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(['msg' => '0'])->asArray()->all(); $model = CoinCrossChain::find()->where(['<>', 'send_result', '0'])->andWhere(['id' => 1603])->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,7 +110,13 @@ class CrossChainController extends Controller ...@@ -110,7 +110,13 @@ class CrossChainController extends Controller
// 'port' => 8801 // 'port' => 8801
// ]; // ];
$service = new Chain33Service($node_params); $service = new Chain33Service($node_params);
$result = $service->getHeight(); $execer = 'paracross';
$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