刘桂岩 5 years ago
parent
commit
a0f8f930ff

+ 9 - 2
application/index/controller/Index.php

@@ -8,14 +8,21 @@
 
 namespace app\index\controller;
 
+use app\common\library\send_message;
 use app\common\library\UUIDs;
 use think\Controller;
 use think\Db;
 class Index extends Controller
 {
     public function  index(){
-        // echo "index";
-        return $this->redirect('http://work.pacsonline.cn',302);
+        $phone = '13763459789';
+        $code = '1234';
+        $id = '2345678iuytrgbn';
+        $data = send_message::sendSms2Patient($phone,$code,$id);
+        $info = json_decode(json_encode($data),true);
+        var_dump($info);die;
+         echo "index";
+//        return $this->redirect('http://work.pacsonline.cn',302);
     }
     public function get_studiesinfo(){
         $study_id = $_REQUEST['study_id'];

+ 1 - 0
application/inter/controller/Writereport.php

@@ -518,6 +518,7 @@ class Writereport extends Base
                 //本地报告确认
                 DB::table('exams')->where('id',$id)->update(['exam_status'=>'9']);
                 $sms = DB::table('institution')->where('id',$doctor['institution_id'])->value('patient_sms');
+                var_dump($sms);die;
                 if($sms == 1){
                     $examData = DB::table('exams')->where('id',$id)->field('phone,study_id')->find();
                     $phone = $examData['phone'];