| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 | 
							- <?php
 
- /**
 
-  * GameLogic.php UTF-8
 
-  * 游戏逻辑
 
-  *
 
-  * @date    : 2020/9/14 15:52
 
-  *
 
-  * @license 这不是一个自由软件,未经授权不许任何使用和传播。
 
-  * @author  : chenbingling <cbl@huosdk.com>
 
-  * @version : H5IOS 1.0
 
-  */
 
- namespace huosdk\h5ios\core\logic;
 
- use huosdk\h5ios\core\model\GameModel;
 
- class GameLogic extends CommonLogic {
 
-     protected $model      = '';
 
-     protected $base_field = [];
 
-     public function __construct($data = []) {
 
-         parent::__construct($data);
 
-         $this->model = new GameModel();
 
-     }
 
-     /**
 
-      * 获取后台列表
 
-      *
 
-      * @param array  $where 搜索条件
 
-      * @param string $page  列表个数
 
-      * @param string $order 排序
 
-      * @param array  $field 附加字段
 
-      * @param string $group 分类
 
-      * @param string $with  附加
 
-      *
 
-      * @return array ['count'=>0,'list'=>[]]
 
-      */
 
-     public function getAdminList($where = [], $page = '1,10', $order = '-id', $field = [], $group = '', $with = '') {
 
-         $_datas = parent::getAdminList($where, $page, $order, $field, $group, 'pg');
 
-         $_list = $_datas['list'];
 
-         foreach ($_list as $_k => $_v) {
 
-             $_list[$_k]['pg_game_name'] = get_val($_v['pg'], 'name', '');
 
-             $_list[$_k]['pg_game_icon'] = get_val($_v['pg'], 'icon', '');
 
-             unset($_list[$_k]['pg']);
 
-         }
 
-         $_datas['list'] = $_list;
 
-         return $_datas;
 
-     }
 
- }
 
 
  |