solupro 5 년 전
부모
커밋
5325ccf790
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      protected/models/Session.php

+ 2 - 1
protected/models/Session.php

@@ -427,8 +427,9 @@ class Session extends Model {
 
             // 特殊处理红包
             if ($msg_type == self::MSG_TYPE_REDPACK) {
+                $url = 'https:' . URL_SELF . "/s/{$group['group_name']}";
                 $text = "
-[收到MeeChat红包,<a href='https://{$_SERVER['HTTP_HOST']}/s/{$group['group_name']}'>请打开MeeChat查看</a>]";
+[收到MeeChat红包,<a href='{$url}'>请打开MeeChat查看</a>]";
             } else {
                 $text = Utils::decodeRC4($msg);
             }