Appointment.php 753 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * @Author: wang jun
  4. * @Date: 2022-01-18 10:57:14
  5. * @Last Modified by: wang jun
  6. * @Last Modified time: 2022-01-19 10:38:56
  7. * 微信类
  8. */
  9. namespace app\app\controller;
  10. use app\app\logic\appointmentlogic;
  11. use think\Controller;
  12. class Appointment extends BaseController
  13. {
  14. /**
  15. * 根据id获取信息
  16. *
  17. * @return void
  18. * @author wj
  19. * @date 2022-07-25
  20. */
  21. public function getinfobyid()
  22. {
  23. $param = request()->param();
  24. $this->checktoken($param);
  25. $l_a = new appointmentlogic();
  26. $result = $l_a->getinfobyid($param);
  27. if (!$result['status']) {
  28. return backjson2(0, $result['msg']);
  29. }
  30. return backjson2(1, 'success', $result['data']);
  31. }
  32. }