123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?php
- /*
- * @Author: wang jun
- * @Date: 2022-01-18 10:57:14
- * @Last Modified by: wang jun
- * @Last Modified time: 2022-01-19 10:38:56
- * 微信类
- */
- namespace app\app\controller;
- use app\app\logic\appointmentlogic;
- use think\Controller;
- class Appointment extends BaseController
- {
- /**
- * 根据id获取信息
- *
- * @return void
- * @author wj
- * @date 2022-07-25
- */
- public function getinfobyid()
- {
- $param = request()->param();
- $this->checktoken($param);
- $l_a = new appointmentlogic();
- $result = $l_a->getinfobyid($param);
- if (1 != $result['status']) {
- if ($result['status'] < 0) {
- return backjson2($result['status'], $result['msg'], $result['data']);
- } else {
- return backjson2(0, $result['msg'], $result['data']);
- }
- }
- return backjson2(200, 'success', $result['data']);
- }
- /**
- * 请求数据完成
- * 根据appointment_id和testtubeno
- *
- * @return void
- * @author wj
- * @date 2022-07-25
- */
- public function finishedbyaid()
- {
- $param = request()->param();
- $this->checktoken($param);
- $l_a = new appointmentlogic();
- $result = $l_a->finishedbyaid($param);
- if (!$result['status']) {
- return backjson2(0, $result['msg']);
- }
- return backjson2(200, 'success', $result['data']);
- }
- /**
- * 获取测试类型
- *
- * @return void
- * @author wj
- * @date 2022-07-26
- */
- public function gettesttypelist()
- {
- $l_a = new appointmentlogic();
- $list = $l_a->gettesttypelist();
- foreach ($list as $key => $value) {
- $item = [
- 'key' => $key,
- 'value' => $value,
- ];
- $list[$key] = $item;
- }
- return backjson2(200, 'success', $list);
- }
- }
|