| 12345678910111213141516171819202122232425 | 
							- <?php
 
- namespace Account\Lib;
 
- use Dever;
 
- class Card
 
- {
 
-     # 获取充值卡
 
-     public function getInfo($card_id, $config_id)
 
-     {
 
-         $where['config_id'] = $config_id;
 
-         $where['id'] = $card_id;
 
-         $data = Dever::db('account/config_card')->find($where);
 
-         if (!$data) {
 
-             Dever::alert('充值卡不存在');
 
-         }
 
-         return $data;
 
-     }
 
-     # 获取充值卡列表
 
-     public function getList($config_id)
 
-     {
 
-         $where['config_id'] = $config_id;
 
-         $data = Dever::db('account/config_card')->select($where);
 
-         return $data;
 
-     }
 
- }
 
 
  |