Merge branch 'dev'
This commit is contained in:
commit
b8f835c953
@ -80,6 +80,40 @@ class TestController extends AbstractController
|
||||
$this->test_15();
|
||||
}
|
||||
|
||||
// 获取未接诊的医生
|
||||
public function uninquiry(){
|
||||
$data = array();
|
||||
|
||||
$params = array();
|
||||
$params['inquiry_status'] = 5;// 待接诊
|
||||
$order_inquirys = OrderInquiry::getList($params);
|
||||
$order_inquirys = $order_inquirys->toArray();
|
||||
if (!empty($order_inquirys)){
|
||||
foreach ($order_inquirys as $row) {
|
||||
// 获取医生数据
|
||||
$params = array();
|
||||
$params['doctor_id'] = $row['doctor_id'];
|
||||
$user_doctor = UserDoctor::getOne($params);
|
||||
|
||||
if ($row['inquiry_type'] == 1){
|
||||
$inquiry_type = "专家问诊";
|
||||
}elseif ($row['inquiry_type'] == 2){
|
||||
$inquiry_type = "快速问诊";
|
||||
}elseif ($row['inquiry_type'] == 3){
|
||||
$inquiry_type = "公益问诊";
|
||||
}elseif ($row['inquiry_type'] == 4){
|
||||
$inquiry_type = "问诊购药";
|
||||
}
|
||||
|
||||
$data['user_name'] = $user_doctor['user_name'];
|
||||
$data['inquiry_type'] = $inquiry_type;
|
||||
$data['patient_name'] = $row['patient_name'];
|
||||
$data['pay_time'] = $row['pay_time'];
|
||||
}
|
||||
}
|
||||
|
||||
return $this->response->json(success($data));
|
||||
}
|
||||
|
||||
|
||||
// 处方上报处方平台
|
||||
|
||||
@ -33,6 +33,7 @@ class Auth
|
||||
"/callback/logistics" => "post", // 快递100订阅回调
|
||||
"/popup" => "get", // 获取弹窗数据
|
||||
"/basic/keyword/search" => "get", // 获取热门搜索关键词
|
||||
"/test/uninquiry" => "get", // 获取未接诊的医生
|
||||
|
||||
"/test/refund" => "get", // 测试退款
|
||||
"/test" => "get", // 测试
|
||||
|
||||
@ -620,6 +620,8 @@ Router::get('/case', [InquiryController::class, 'getPatientInquiryCase']);
|
||||
Router::addGroup('/test', function () {
|
||||
Router::get('', [TestController::class, 'test']);
|
||||
|
||||
//
|
||||
Router::get('/uninquiry', [TestController::class, 'uninquiry']);
|
||||
// 模拟退款
|
||||
// Router::get('/refund', [TestController::class, 'refund']);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user