|
@@ -273,12 +273,14 @@ class Writereport extends Base
|
|
|
$report = DB::table('report')->where('id',$report_id)->update($info);
|
|
|
$id = $report_info['id'];
|
|
|
$cache_key = $doctor['id'].'_'.$report_id;
|
|
|
+ $rid = $report_id;
|
|
|
}else{
|
|
|
$id = $this->uuids->uuid16();
|
|
|
$info['id'] = $id;
|
|
|
$info['createdAt'] = date('Y-m-d H:i:s',time());
|
|
|
$report = DB::table('report')->insert($info);
|
|
|
$cache_key = $doctor['id'].'_'.$id;
|
|
|
+ $rid = $id;
|
|
|
}
|
|
|
if(Cache::get($cache_key)){
|
|
|
Cache::rm($cache_key);
|
|
@@ -304,6 +306,8 @@ class Writereport extends Base
|
|
|
$content = $application['id'];
|
|
|
send_message::sendSms2Self($tel,$type,$content);
|
|
|
}
|
|
|
+ $url = 'wechat.pacsonline.cn/wxzskk/uwx/requestWxQrcode?reportId='.$rid;
|
|
|
+ $info = $this->curl_get($url);
|
|
|
return json_encode(['status'=>'ok','code'=>'0000','msg'=>'保存成功','sessionid'=>$sessionid]);
|
|
|
}catch(\Exception $e){
|
|
|
return json_encode(['status'=>'fail','code'=>'2000','msg'=>$e->getMessage()]);
|
|
@@ -1000,6 +1004,8 @@ class Writereport extends Base
|
|
|
$content = $application['id'];
|
|
|
send_message::sendSms2Self($tel,$type,$content);
|
|
|
}
|
|
|
+ $url = 'wechat.pacsonline.cn/wxzskk/uwx/requestWxQrcode?reportId='.$rid;
|
|
|
+ $info = $this->curl_get($url);
|
|
|
return json_encode(['status'=>'ok','msg'=>'成功','code'=>'0000']);
|
|
|
}
|
|
|
// 获取远程报告列表
|