|
@@ -1481,4 +1481,31 @@ class ReportService extends ZskkDefaultService {
|
|
|
$data = $this->reportDao->deleteAiReport($id,3);
|
|
|
return $data;
|
|
|
}
|
|
|
+
|
|
|
+ public function sendSms2Yq($params)
|
|
|
+ {
|
|
|
+ $phone = $params['phone'];
|
|
|
+ $institution = $params['institution'];
|
|
|
+ $idcard = $params['idcard'];
|
|
|
+ $code = rand(0,9).rand(0,9).rand(0,9).rand(0,9);
|
|
|
+ if(empty($phone) || empty($idcard)){
|
|
|
+ return '';
|
|
|
+ }else{
|
|
|
+ //发送短信
|
|
|
+ $note = [
|
|
|
+ 'long_url'=>'http://111.53.165.106:9605/mobile/#/ReportSearch?idcard='.$idcard
|
|
|
+ ];
|
|
|
+ $noteId = $this->reportDao->insertNote($note);
|
|
|
+ $nid = base64_encode(str_pad(base_convert($noteId,10,36),6,'0',STR_PAD_LEFT));
|
|
|
+
|
|
|
+ $send = send_message::sendExam2ShortPatient($phone,$code,$institution,$nid);
|
|
|
+
|
|
|
+ $data = json_decode(json_encode($send),true);
|
|
|
+ if($data['Code'] == 'OK'){
|
|
|
+ return '短信发送成功';
|
|
|
+ }else{
|
|
|
+ return '短信发送失败';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|