|
@@ -97,11 +97,12 @@ class Application extends Base
|
|
|
if(!empty($special_doctors)) {
|
|
|
$special_hospitals = array();
|
|
|
foreach($special_doctors as $v) {
|
|
|
- if(!isset($special_doctors[$v['hid']])){
|
|
|
- $super_hospitals[$v['hid']] = [
|
|
|
+ if(!isset($special_doctors[$v['sid']])){
|
|
|
+ $super_hospitals[$v['sid']] = [
|
|
|
"doctor" => [
|
|
|
[
|
|
|
"id" => $v['did'],
|
|
|
+ "hid" => $v['hid'],
|
|
|
"is_admin" => '0',
|
|
|
"realname" => $v['dname'],
|
|
|
"describe" => $v['describe'],
|
|
@@ -109,15 +110,15 @@ class Application extends Base
|
|
|
"scid" => $v['id']
|
|
|
]
|
|
|
],
|
|
|
- "id" => $v['hid'],
|
|
|
"name" => $v['name'],
|
|
|
"color" => $v['color'],
|
|
|
"sid" => $v['sid'],
|
|
|
"check" => $v['check']
|
|
|
];
|
|
|
} else {
|
|
|
- $super_hospitals[$v['hid']]['doctor'][] = [
|
|
|
+ $super_hospitals[$v['sid']]['doctor'][] = [
|
|
|
"id" => $v['did'],
|
|
|
+ "hid" => $v['hid'],
|
|
|
"is_admin" => '0',
|
|
|
"realname" => $v['dname'],
|
|
|
"describe" => $v['describe'],
|