AgentCash.php 736 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace App\Http\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use \App\Models;
  5. /**
  6. * 代理管理模型类
  7. */
  8. class AgentCash extends Model
  9. {
  10. /**
  11. * 获取游戏url及参数
  12. *
  13. * @access public
  14. * @param mixed $getGameUrlWhere 查询条件
  15. * @return String
  16. */
  17. public function getGameUrl($getGameUrlWhere)
  18. {
  19. // 获取游戏地址数据.
  20. $gameUrlModel = new Models\GameUrl;
  21. $getGameUrlSelect = [
  22. 'gameUrl_url',
  23. 'gameUrl_data',
  24. ];
  25. $getGameUrl = $gameUrlModel
  26. ->select($getGameUrlSelect)
  27. ->where($getGameUrlWhere)
  28. ->first();
  29. return $getGameUrl;
  30. }//end getGameUrl()
  31. }