Card.php 616 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Account\Lib;
  3. use Dever;
  4. class Card
  5. {
  6. # 获取充值卡
  7. public function getInfo($card_id, $config_id)
  8. {
  9. $where['config_id'] = $config_id;
  10. $where['id'] = $card_id;
  11. $data = Dever::db('account/config_card')->find($where);
  12. if (!$data) {
  13. Dever::alert('充值卡不存在');
  14. }
  15. return $data;
  16. }
  17. # 获取充值卡列表
  18. public function getList($config_id)
  19. {
  20. $where['config_id'] = $config_id;
  21. $data = Dever::db('account/config_card')->select($where);
  22. return $data;
  23. }
  24. }