StOddsCode.php 613 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. *------Create thems Model------
  4. *------SCWPHP Version 1.0.0------
  5. *------Dev Model Jions------
  6. *------Create Time 2019-04-15 16:05:26------
  7. */
  8. namespace App\Commons\Model;
  9. use \System\Model;
  10. class StOddsCode extends Model {
  11. protected $table = 'st_odds_code';
  12. /**
  13. * 获取玩法
  14. *
  15. * @access public
  16. * @param mixed $where 查询条件
  17. * @return array JsonString
  18. */
  19. public function stOddsCode($where) {
  20. $result = $this
  21. -> select('odds_name')
  22. -> where($where)
  23. -> first();
  24. return $result['odds_name'];
  25. }
  26. }