| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- /**
- *------Create thems Controller------
- *------SCWPHP Version 1.0.0------
- *------Dev Model Jions------
- *------Create Time 2017-06-08 10:07:19------
- */
- namespace App\Api\Controller;
- use App\Api\Model\Lottery_money;
- use App\Api\Model\Lottery_money_log;
- use App\Api\Model\MoneyBuy;
- use Biz\Common\Common;
- use Biz\Game\GameList;
- use System\Lang;
- class UserBuy extends BaseController {
- private $moneyBuyClass;
- public function init() {
- // 实例化
- $this -> moneyBuyClass = new MoneyBuy();
- }
- /**
- * 投注记录
- *
- * @access public
- * @return array JsonString
- */
- public function bettingRecord() {
- // 获取下注信息
- $result = $this -> moneyBuyClass -> bettingRecord();
- Render($result, '1', 'success');
- }
- /**
- * 盈亏记录
- *
- * @access public
- * @return array JsonString
- */
- public function moneyRecord() {
- // 获取盈亏记录
- $result = $this -> moneyBuyClass -> moneyRecord();
- Render($result, '1', 'success');
- }
- }
|