Systemconfig.php 754 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace app\admin\model;
  3. use think\Model;
  4. /**
  5. * 系统设置模型
  6. */
  7. class Systemconfig extends Model
  8. {
  9. /**
  10. * 数据筛选
  11. *
  12. * @access public
  13. * @param mixed $where 数据
  14. * @return array 返回类型
  15. */
  16. public function selectSystemconfig()
  17. {
  18. $result = $this->order('systemconfig_id')->select();
  19. return $result;
  20. }//end selectSystemconfig()
  21. /**
  22. * 数据修改
  23. *
  24. * @access public
  25. * @param mixed $data 数据
  26. * @param mixed $where 条件
  27. * @return array 返回类型
  28. */
  29. public function updateSystemconfig($where, $data)
  30. {
  31. $result = $this->where($where)->update($data);
  32. return $result;
  33. }//end updateReply()
  34. }