send_message.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace app\common\library;
  3. class send_message extends AliyunSms{
  4. /*
  5. * 向上级医师发送[远程诊断申请]短信
  6. * 亲爱的${name}医生您好!收到新的${type},请您及时于${time}前登录系统处理
  7. * @param {string} phone 手机号码
  8. * @param {string} time 时间
  9. * @param {string} name 姓名(姓)
  10. */
  11. public static function sendSms2Apply($phone, $time = '', $name = '') {
  12. return self::sendSms($phone,"中世康恺","SMS_153325607",array("time" => $time,"name" => $name));
  13. }
  14. /*
  15. * 向下级医师发送[远程诊断申请被驳回]短信
  16. * 很抱歉,您发起的远程诊断申请被驳回,请您及时处理后重新发起申请。驳回原因:${description}
  17. * @param {string} description 驳回理由
  18. */
  19. public static function sendSms2RejectApply($phone, $description = '') {
  20. return self::sendSms($phone,"中世康恺","SMS_153330722",array("description" => $description));
  21. }
  22. /*
  23. * 向下级医院发送[远程诊断报告已经被写完]短信
  24. * 您发起的远程诊断申请已由${doctor}医师完成,请您登录系统查看
  25. * @param {string} doctor 医生
  26. */
  27. public static function sendSms2CompleteReport($phone, $doctor = '') {
  28. return self::sendSms($phone,"中世康恺","SMS_153330824",array("doctor" => $doctor));
  29. }
  30. /*
  31. * 发送[内部通知]短信
  32. * 通知: 类型:${type} 内容:${content}
  33. * @param {string} type 通知类型
  34. * @param {string} content 通知内容
  35. */
  36. public static function sendSms2Self($phone,$type = '', $content = '') {
  37. return self::sendSms($phone,"中世康恺","SMS_153325903",array("type" => $type, "content" => $content));
  38. }
  39. }