Browse Source

修改代码

fuyu 6 years ago
parent
commit
17aa180dda
2 changed files with 16 additions and 11 deletions
  1. 4 3
      application/common/library/AliyunSms.php
  2. 12 8
      application/inter/controller/Login.php

+ 4 - 3
application/common/library/AliyunSms.php

@@ -137,11 +137,12 @@ class AliyunSms
     }
     /*
     * 发送[内部通知]短信
-    * 通知:${content}
+    * 通知: 类型:${type} 内容:${content}
+    * @param {string} type 通知类型
     * @param {string} content 通知内容
     */
-    public static function sendSms2Self($phone, $content = '') {
-        return self::sendSms($phone,"中世康恺","SMS_153325903",array("content" => $content));
+    public static function sendSms2Self($phone,$type = '', $content = '') {
+        return self::sendSms($phone,"中世康恺","SMS_153325903",array("type" => $type, "content" => $content));
     }
 
     // /**

+ 12 - 8
application/inter/controller/Login.php

@@ -168,27 +168,31 @@ class Login extends Controller
         * @param {string} time 时间
         * @param {string} name 姓名(姓)
         */
-        // AliyunSms::sendSms2Apply($phone, $time = '', $name = '');
-        liyunSms::sendSms2Apply("18246195584", '12:00');
+        // AliyunSms::sendSms2Apply($phone, $time=, $name=);
+        liyunSms::sendSms2Apply("13763459789", '12:00', '刘');
         /*
         * 向下级医师发送[远程诊断申请被驳回]短信
         * 很抱歉,您发起的远程诊断申请被驳回,请您及时处理后重新发起申请。驳回原因:${description}
         * @param {string} description 驳回理由
         */
-        // AliyunSms::sendSms2RejectApply($phone, $description = '');
-        
+        // AliyunSms::sendSms2RejectApply($phone, $description);
+        liyunSms::sendSms2RejectApply("13763459789", '申请单描述信息不全');
+
         /*
         * 向下级医院发送[远程诊断报告已经被写完]短信
         * 您发起的远程诊断申请已由${doctor}医师完成,请您登录系统查看
         * @param {string} doctor 医生 
         */
-        // AliyunSms::sendSms2CompleteReport($phone, $doctor = '');
+        // AliyunSms::sendSms2CompleteReport($phone, $doctor);
+        AliyunSms::sendSms2CompleteReport("13763459789", "301医师集团刘桂岩");
         
-        /*
+       /*
         * 发送[内部通知]短信
-        * 通知:${content}
+        * 通知: 类型:${type} 内容:${content}
+        * @param {string} type 通知类型
         * @param {string} content 通知内容
         */
-        // AliyunSms::sendSms2Self($phone, $content = '');
+        // AliyunSms::sendSms2Self($phone, $type, $content);
+        AliyunSms::sendSms2Self("13763459789", "发起申请", "魏庙xx医院xx医师向301医师集团刘xx医师发起了远程诊断申请,申请单idxxx");
     }
 }