Contact.php 553 B

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