stanley-king 7 lat temu
rodzic
commit
11128d95b9
2 zmienionych plików z 6 dodań i 6 usunięć
  1. 3 3
      helper/url_helper.php
  2. 3 3
      mobile/control/invite_friend.php

+ 3 - 3
helper/url_helper.php

@@ -63,7 +63,7 @@ class url_helper
     public static function inviter_url()
     {
         $relay_id = session_helper::share_id();
-        $url = BASE_SITE_URL . "/mobile/index.php?act=invite_friend&op=index&client_type=wap&relay_id={$relay_id}";
+        $url = BASE_SITE_URL . "/mobile/index.php?act=invite_friend&op=index&client_type=wap&curuser={$relay_id}&relay_id={$relay_id}";
         return $url;
     }
 }
@@ -119,10 +119,10 @@ class author_url
         $url = BASE_SITE_URL . "/mobile/index.php?act=special&op=index&special_id={$special_id}&client_type=wap&relay_id={$relay_id}";
         return $url;
     }
-    public static function inviter_url()
+    public static function inviter_url($user)
     {
         $relay_id = session_helper::relay_id();
-        $url = BASE_SITE_URL . "/mobile/index.php?act=invite_friend&op=index&client_type=wap&relay_id={$relay_id}";
+        $url = BASE_SITE_URL . "/mobile/index.php?act=invite_friend&op=index&client_type=wap&curuser={$user}&relay_id={$relay_id}";
         return $url;
     }
 }

+ 3 - 3
mobile/control/invite_friend.php

@@ -25,11 +25,11 @@ class invite_friendControl extends mobileControl
 
     public function indexOp()
     {
-        $user = intval($_GET['relay_id']);
+        $user = intval($_GET['curuser']);
         if(session_helper::need_wechat_author())
         {
             $author = new thrid_author\wxauthor();
-            $url = "/mobile/index.php?act=invite_friend&op=index&relay_id={$user}";
+            $url = author_url::inviter_url($user);
             $url = $author->enter($url);
             return self::outsuccess(['direct_uri' => $url],"redirect");
         }
@@ -130,7 +130,7 @@ class tpl_invite_friend
         foreach ($this->mInvitees as $minfo)
         {
             $user = $minfo->member_id();
-            $url = BASE_SITE_URL . "/mobile/index.php?act=invite_friend&op=index&client_type=wap&relay_id={$user}";
+            $url = BASE_SITE_URL . "/mobile/index.php?act=invite_friend&op=index&client_type=wap&curuser={$user}";
             $str = "<div class=\"item\">
                         <a href=\"{$url}\">
                             <div class=\"user_img\">