You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.0 KiB
PHP

<?php
namespace App\Http\Controllers\API\H5;
use App\Http\Controllers\API\AspNetZhuanController;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class DoctorController extends Controller
{
//获取体检医生列表
public function GetList()
{
$date = request('date');
$hospital = request('hospital');
$hospital_map = [
'h1' => '6',
'h4' => '2',
];
$dnet = new AspNetZhuanController();
$res = $dnet->GetDoctorDateList([
"yyid" => $hospital_map["h$hospital"],
"rq" => $date,
"action" => "1"
]);
$list = [];
if ($res['code'] == '200' && count($res['yisheng']) != 0) {
foreach ($res['yisheng'] as $key => $value) {
$list[] = [
'head_img' => 'data:image/jpeg;base64,' . $value['U_IMG'],
'name' => $value['U_NAME'],
'level' => $value['ZC_NAME'],
'hospital' => '',
'time' => $value['U_GDPB'],
'desc' => ''
];
}
}
return \Yz::Return(true, "查询完成", ['list' => $list]);
}
}