solupro il y a 5 ans
Parent
commit
5325ccf790
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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) {
             if ($msg_type == self::MSG_TYPE_REDPACK) {
+                $url = 'https:' . URL_SELF . "/s/{$group['group_name']}";
                 $text = "
                 $text = "
-[收到MeeChat红包,<a href='https://{$_SERVER['HTTP_HOST']}/s/{$group['group_name']}'>请打开MeeChat查看</a>]";
+[收到MeeChat红包,<a href='{$url}'>请打开MeeChat查看</a>]";
             } else {
             } else {
                 $text = Utils::decodeRC4($msg);
                 $text = Utils::decodeRC4($msg);
             }
             }