Commit f1f81f7c authored by shajiaiming's avatar shajiaiming

fix

parent 0730c54b
...@@ -124,7 +124,7 @@ class CrossChainController extends Controller ...@@ -124,7 +124,7 @@ class CrossChainController extends Controller
#$result = $service->QueryTransaction($send_result); #$result = $service->QueryTransaction($send_result);
$switch = true; $switch = true;
$result = $this->queryTransaction($node_params, $send_result); $result = $this->queryTransaction($node_params, $send_result);
echo json_encode($result);exit;
if (isset($result['result']['actionName']) && 'unknown' == $result['result']['actionName']) { if (isset($result['result']['actionName']) && 'unknown' == $result['result']['actionName']) {
$redis->hdel(CoinCrossChain::CROSS_CHAIN_CACHE_FAIL, $val['address'] . ':' . $val['is_with_draw']); $redis->hdel(CoinCrossChain::CROSS_CHAIN_CACHE_FAIL, $val['address'] . ':' . $val['is_with_draw']);
$query_result = 'success'; $query_result = 'success';
...@@ -206,6 +206,21 @@ class CrossChainController extends Controller ...@@ -206,6 +206,21 @@ class CrossChainController extends Controller
} }
} }
return $result; if (isset($result['result']['receipt']) && is_array($result['result']['receipt']['logs'])){
foreach ($result['result']['receipt']['logs'] as $log) {
if (isset($log['tyName']) && 'logerr' == strtolower($log['tyName'])){
return $result;
}
}
}
// static $result = [];
// $service = new Chain33Service($node_params);
// $result = $service->QueryTransaction($send_result);
// echo json_encode($result) . PHP_EOL;
// if (isset($result['result']['tx']['next'])) {
// $this->queryTransaction($node_params, $result['result']['tx']['next']);
// }
// return $result;
} }
} }
\ No newline at end of file
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