UserBuy.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. *------Create thems Controller------
  4. *------SCWPHP Version 1.0.0------
  5. *------Dev Model Jions------
  6. *------Create Time 2017-06-08 10:07:19------
  7. */
  8. namespace App\Api\Controller;
  9. use App\Api\Model\Lottery_money;
  10. use App\Api\Model\Lottery_money_log;
  11. use App\Api\Model\MoneyBuy;
  12. use Biz\Common\Common;
  13. use Biz\Game\GameList;
  14. use System\Lang;
  15. class UserBuy extends BaseController {
  16. private $moneyBuyClass;
  17. public function init() {
  18. // 实例化
  19. $this -> moneyBuyClass = new MoneyBuy();
  20. }
  21. /**
  22. * 投注记录
  23. *
  24. * @access public
  25. * @return array JsonString
  26. */
  27. public function bettingRecord() {
  28. // 获取下注信息
  29. $result = $this -> moneyBuyClass -> bettingRecord();
  30. Render($result, '1', 'success');
  31. }
  32. /**
  33. * 盈亏记录
  34. *
  35. * @access public
  36. * @return array JsonString
  37. */
  38. public function moneyRecord() {
  39. // 获取盈亏记录
  40. $result = $this -> moneyBuyClass -> moneyRecord();
  41. Render($result, '1', 'success');
  42. }
  43. }