|  | @@ -256,11 +256,11 @@ class Index extends Api
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      public function getInviteCode() {
 | 
	
		
			
				|  |  |          // 获取二维码
 | 
	
		
			
				|  |  | -        $qrcode = $this->httpurl(config("site.qrcode"));
 | 
	
		
			
				|  |  | -        $miniqrcode = $this->httpurl(config("site.miniqrcode"));
 | 
	
		
			
				|  |  | +        $host = $_SERVER["REQUEST_SCHEME"]."://".$_SERVER["HTTP_HOST"];
 | 
	
		
			
				|  |  | +        $qrcode = $this->httpurl($host.config("site.qrcode"));
 | 
	
		
			
				|  |  | +        $miniqrcode = $this->httpurl($host.config("site.miniqrcode"));
 | 
	
		
			
				|  |  |          // 获取用户邀请码
 | 
	
		
			
				|  |  |          $inviteCode = \app\common\model\User::where(["id"=>$this->auth->id])->value("invite_no");
 | 
	
		
			
				|  |  | -        $host = $_SERVER["REQUEST_SCHEME"]."://".$_SERVER["HTTP_HOST"];
 | 
	
		
			
				|  |  |          $downlowdLink = $host."/index/index/appJump?t=wlt".rand(10,999).Random::alpha(8);
 | 
	
		
			
				|  |  |          $this->success("获取成功!",["qrcode"=>$qrcode,"miniqrcode"=>$miniqrcode,"inviteCode"=>$inviteCode,"downlowdLink"=>$downlowdLink]);
 | 
	
		
			
				|  |  |      }
 |