| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace App\Http\Models;
- use Illuminate\Database\Eloquent\Model;
- use \App\Models;
- use \App\Http\Models as HttpModel;
- /**
- * 代理管理模型类
- */
- class Agent extends Model
- {
- /**
- * 获取游戏url及参数
- *
- * @access public
- * @param mixed $gmenuId 游戏Id
- * @return String
- */
- public function getGameUrl($gmenuId)
- {
- // 获取游戏地址数据.
- $gameUrlModel = new Models\GameUrl;
- $getGameUrlSelect = ['gameUrl_url', 'gameUrl_data'];
- $getameUrlWhere = [
- 'gmenu_id' => $gmenuId,
- 'gameUrl_type' => 'login',
- ];
- $getGameUrl = $gameUrlModel
- ->select($getGameUrlSelect)
- ->where($getameUrlWhere)
- ->first();
- return $getGameUrl;
- }//end getGameUrl()
- }
|