1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace app\admin\controller;
- use app\admin\logic\visitlogic;
- /**
- * 到访
- *
- * @author wj
- * @date 2023-01-18
- */
- class Visit
- {
- public function newinfo()
- {
- $post = request()->post();
- $l_v = new visitlogic();
- $result = $l_v->newinfo($post);
- if (empty($result['status'])) {
- return backjson2(0, $result['msg']);
- }
- return backjson2(200, $result['msg'], $result['data']);
- }
- public function getlist()
- {
- $post = request()->post();
- $l_v = new visitlogic();
- $result = $l_v->getlist($post);
- if (empty($result['status'])) {
- return backjson2(0, $result['msg']);
- }
- return backjson2(200, $result['msg'], $result['data']);
- }
- public function getbusinesstyoelist()
- {
- $post = request()->post();
- $l_v = new visitlogic();
- $result = $l_v->getbusinesstyoelist($post);
- if (empty($result['status'])) {
- return backjson2(0, $result['msg']);
- }
- return backjson2(200, $result['msg'], $result['data']);
- }
- }
|