TokenController.php 952 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * 代币相关
  4. */
  5. class TokenController extends BaseController {
  6. protected $ajaxLoginActions = [
  7. ];
  8. public function __construct() {
  9. parent::__construct(false);
  10. }
  11. /**
  12. * EOS充值接口
  13. * @author benzhan
  14. * @param $args
  15. * @return array
  16. */
  17. public function actionEosDepositTrx($args) {
  18. $rules = [
  19. 'transaction_id' => ['string', 'desc' => '充值交易id'],
  20. ];
  21. Param::checkParam2($rules, $args);
  22. // 同步转账表,匹配到同步下来的transaction_id就算成功
  23. }
  24. /**
  25. * EOS提现接口
  26. * @author benzhan
  27. * @param $args
  28. * @return array
  29. */
  30. public function actionEosWithdraw($args) {
  31. $rules = [
  32. 'transaction_id' => ['string', 'desc' => '充值交易id'],
  33. 'block_num' => ['int', 'desc' => '区块id'],
  34. ];
  35. Param::checkParam2($rules, $args);
  36. }
  37. }