Share.php 343 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Act\Lib;
  3. use Dever;
  4. class Share
  5. {
  6. # 新增
  7. public function add($name, $link, $type = 1)
  8. {
  9. $where = array();
  10. $where['name'] = $name;
  11. $where['link'] = $link;
  12. $where['type'] = $type;
  13. Dever::db('act/share')->insert($where);
  14. return true;
  15. }
  16. }