diff --git a/www-api/app/Controllers/WrenchAuth.php b/www-api/app/Controllers/WrenchAuth.php index 828a8456..189b78c4 100644 --- a/www-api/app/Controllers/WrenchAuth.php +++ b/www-api/app/Controllers/WrenchAuth.php @@ -62,7 +62,7 @@ class WrenchAuth extends BaseController log_message('critical', "***** ***** WrenchAuth::userLogin Ret = ".$ret ); if ( $out['internal_return'] == 100 ){ $endpoint = "USER_SESSION-". str_pad($out["member_id"], 12, "0", STR_PAD_LEFT) ."-"; - $out["refer_link"] = "https://www.wrenchboard.com/myref/".substr($out["uid"], 0, 8).str_pad($out["member_id"], 4, "0", STR_PAD_LEFT); + $out["refer_link"] = $this->user_server_name."/".substr($out["uid"], 0, 8).str_pad($out["member_id"], 4, "0", STR_PAD_LEFT); log_message('critical', "***** ***** WrenchAuth::userLogin USER_SESSION = ".$endpoint ); $this->saveCache($endpoint,$out,15000); $this->neatCache($out); diff --git a/www-api/app/Controllers/WrenchUser.php b/www-api/app/Controllers/WrenchUser.php index b323413c..e55f8d28 100644 --- a/www-api/app/Controllers/WrenchUser.php +++ b/www-api/app/Controllers/WrenchUser.php @@ -31,6 +31,7 @@ class WrenchUser extends BaseController $in = json_decode($raw_json, true); $in["action"] = WRENCHBOARD_MYFILES_LIST; $out=[]; + $in["refer_link"] = $this->user_server_name."/".substr($out["uid"], 0, 8).str_pad($out["member_id"], 4, "0", STR_PAD_LEFT);