|
@@ -12,6 +12,7 @@ use EasyWeChat\Core\Exception;
|
|
|
use think\Controller;
|
|
|
use think\Request;
|
|
|
use think\Db;
|
|
|
+use think\Cache;
|
|
|
|
|
|
class Dcquery extends Controller
|
|
|
{
|
|
@@ -117,6 +118,11 @@ class Dcquery extends Controller
|
|
|
public function get_studiesinfo(){
|
|
|
try{
|
|
|
$study_id = $_REQUEST['study_id'];
|
|
|
+ if($study_id == '71e721a36ceb4bf4' || $study_id== '2c7b65989e965c2a'){
|
|
|
+ if(Cache::get($study_id)){
|
|
|
+ return Cache::get($study_id);
|
|
|
+ }
|
|
|
+ }
|
|
|
if(isset($_REQUEST['address']) && !empty($_REQUEST['address'])){
|
|
|
$url = $_REQUEST['address'];
|
|
|
}else{
|
|
@@ -201,6 +207,9 @@ class Dcquery extends Controller
|
|
|
$info['patientId'] = $patient_info['temp_patient_id'];
|
|
|
$info['institution'] = $institution['name'];
|
|
|
$return['studies'][] = $info;
|
|
|
+ if($study_id == '71e721a36ceb4bf4' || $study_id== '2c7b65989e965c2a'){
|
|
|
+ Cache::set($study_id,json_encode($return),604800);
|
|
|
+ }
|
|
|
return json_encode($return);
|
|
|
}catch(Exception $e){
|
|
|
echo $e->getMessage();
|