diff --git a/www-api/app/Controllers/BaseController.php b/www-api/app/Controllers/BaseController.php index 073f3495..0b3bd8d8 100644 --- a/www-api/app/Controllers/BaseController.php +++ b/www-api/app/Controllers/BaseController.php @@ -46,6 +46,8 @@ abstract class BaseController extends Controller public $current_env=0; public $primary_image_sever=''; public $server_tag=''; + public $website_url=''; + public $wrenchboard=null; public $micro_service_net1; public $user_server_name =''; @@ -71,6 +73,8 @@ abstract class BaseController extends Controller $this->micro_service_net1 = $this->getSiteConfigurations("system.micro_service_net1"); //"10.10.1 $this->user_server_name = $this->getSiteConfigurations("system.server_name"); // 'https://dev-users.wrenchboard.com'; $this->show_extra_wallet = $this->getSiteConfigurations("system.show_extra_wallet"); + $this->website_url = $this->getSiteConfigurations("system.website_url"); + // $this->getSettings(''); // help create all settings data // $appConfig = config('Cache'); diff --git a/www-api/app/Controllers/WrenchUser.php b/www-api/app/Controllers/WrenchUser.php index 8151f4ed..8a1cf5ed 100644 --- a/www-api/app/Controllers/WrenchUser.php +++ b/www-api/app/Controllers/WrenchUser.php @@ -40,7 +40,7 @@ class WrenchUser extends BaseController if ( $in["uid_part"] !='' && $in["member_id"] > 0 ){ log_message('critical', "***** ***** WrenchUser::UsersRefLink IN Call Backend "); - $in["refer_link"] = $this->user_server_name."/myrefer/".$in["refer_link"]; + $in["refer_link"] = $this->website_url."/myrefer/".$in["refer_link"]; $ret = $this->wrenchboard->wrenchboard_api($in, $out); }