|
|
@ -132,4 +132,38 @@ class mManage extends mBase { |
|
|
|
|
|
|
|
return $id; |
|
|
|
} |
|
|
|
|
|
|
|
public function getMedicalBookList($title, $state) { |
|
|
|
$params = array( |
|
|
|
'title' => $title, |
|
|
|
'state' => $state, |
|
|
|
); |
|
|
|
|
|
|
|
$jsonres = $this->postCUrl('http://118.178.228.101:27000/upload_file_check', $params, 90); |
|
|
|
if (!$jsonres) { |
|
|
|
$this->setError('请求失败'); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
$res = json_decode($jsonres, true); |
|
|
|
if ($res['code'] != 200) { |
|
|
|
$this->setError('请求错误'); |
|
|
|
return false; |
|
|
|
} |
|
|
|
if(!isset($res['info']) || empty($res['info'])) { |
|
|
|
$this->setError('数据有误'); |
|
|
|
return false; |
|
|
|
} |
|
|
|
$data = array(); |
|
|
|
foreach ($res['info'] as $value) { |
|
|
|
$temp = array(); |
|
|
|
$temp['sign'] = $value[2]; |
|
|
|
$temp['content'] = $value[1]; |
|
|
|
|
|
|
|
$data[] = $temp; |
|
|
|
} |
|
|
|
unset($res); |
|
|
|
|
|
|
|
return $data; |
|
|
|
} |
|
|
|
} |