Ding.php 449 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Act\Lib;
  3. use Dever;
  4. class Ding
  5. {
  6. # 新增
  7. public function add($username, $email, $qudao = 1)
  8. {
  9. $where = array();
  10. $where['username'] = $username;
  11. $where['email'] = $email;
  12. $where['qudao'] = $qudao;
  13. $info = Dever::db('act/ding')->one($where);
  14. if (!$info) {
  15. Dever::db('act/ding')->insert($where);
  16. }
  17. return true;
  18. }
  19. }