Browse Source

log日志

lgy 3 weeks ago
parent
commit
c5a228340d
1 changed files with 5 additions and 1 deletions
  1. 5 1
      jcjyhr/app/zskk/servies/PatientServies.php

+ 5 - 1
jcjyhr/app/zskk/servies/PatientServies.php

@@ -1002,10 +1002,14 @@ class PatientServies
     {
     {
         if(empty($idcard) || empty($institution) || empty($phone))
         if(empty($idcard) || empty($institution) || empty($phone))
         {
         {
+            log::record('缺少短信发送数据');
             return '';
             return '';
         }else{
         }else{
+            log::record('可以发送短信');
             $url = "https://risserver3.pacsonline.cn/sendYqSms?phone=$phone&institution=$institution&idcard=$idcard";
             $url = "https://risserver3.pacsonline.cn/sendYqSms?phone=$phone&institution=$institution&idcard=$idcard";
-            $this->curl_get($url);
+            log::record('短信请求链接地址'.$url);
+            $return = $this->curl_get($url);
+            log::record('短信功能返回'.json_encode($return));
         }
         }
     }
     }