|
@@ -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\">
|