Visit.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace app\admin\controller;
  3. use app\admin\logic\visitlogic;
  4. /**
  5. * 到访
  6. *
  7. * @author wj
  8. * @date 2023-01-18
  9. */
  10. class Visit
  11. {
  12. public function newinfo()
  13. {
  14. $post = request()->post();
  15. $l_v = new visitlogic();
  16. $result = $l_v->newinfo($post);
  17. if (empty($result['status'])) {
  18. return backjson2(0, $result['msg']);
  19. }
  20. return backjson2(200, $result['msg'], $result['data']);
  21. }
  22. public function getlist()
  23. {
  24. $post = request()->post();
  25. $l_v = new visitlogic();
  26. $result = $l_v->getlist($post);
  27. if (empty($result['status'])) {
  28. return backjson2(0, $result['msg']);
  29. }
  30. return backjson2(200, $result['msg'], $result['data']);
  31. }
  32. public function getbusinesstyoelist()
  33. {
  34. $post = request()->post();
  35. $l_v = new visitlogic();
  36. $result = $l_v->getbusinesstyoelist($post);
  37. if (empty($result['status'])) {
  38. return backjson2(0, $result['msg']);
  39. }
  40. return backjson2(200, $result['msg'], $result['data']);
  41. }
  42. }