|
@@ -982,6 +982,12 @@ class Writereport extends Base
|
|
|
// $hospital = DB::table('institution')->where('id',$doctor['institution_id'])->field('name')->find();
|
|
|
$hospital = DB::table('institution')->where('id',$report_doctor['institution_id'])->field('name')->find();
|
|
|
$info['hospital'] = $hospital['name'];
|
|
|
+ if(empty($report['qr_code'])){
|
|
|
+ $url = 'http://wechat.pacsonline.cn/wx_patient/api/unifyGetWxQrcode?reportId='.$report_id;
|
|
|
+ $code = $this->curl_get($url);
|
|
|
+ $qr_code = DB::table('report')->where('id',$report_id)->value('qr_code');
|
|
|
+ $info['qr_code'] = $qr_code;
|
|
|
+ }
|
|
|
return json_encode(['status'=>'ok','code'=>'0000','info'=>$info,'sessionid'=>$sessionid]);
|
|
|
}catch(\Exception $e){
|
|
|
return json_encode(['status'=>'fail','code'=>'2000','msg'=>$e->getMessage()]);
|