| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -25,7 +25,7 @@ class TestController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							$redis_key = 'mini_program_set_privacy'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							Redis::del($redis_key); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							$agent = Agent::find(3); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							$agent = Agent::find(2); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							$openPlatform = new OpenPlatform(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							$refreshToken = $openPlatform->refreshToken($agent->appid); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							if (!$refreshToken) { | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -39,7 +39,7 @@ class TestController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								dd('获取code失败'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					//		dd($code->httpPostJson('cgi-bin/component/getprivacysetting'));
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							dd($code->httpPostJson('cgi-bin/component/getprivacysetting')); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							$data = [ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								'privacy_ver' => 2, //1表示现网版本;2表示开发版。默认是2开发版
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |