|  | @@ -11,6 +11,7 @@ import com.fs.common.exception.base.BaseException;
 | 
	
		
			
				|  |  |  import com.fs.common.utils.DateUtils;
 | 
	
		
			
				|  |  |  import org.apache.commons.text.StringSubstitutor;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | +import org.springframework.beans.factory.annotation.Value;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  |  import com.fs.baidu.mapper.BdApiMapper;
 | 
	
		
			
				|  |  |  import com.fs.baidu.domain.BdApi;
 | 
	
	
		
			
				|  | @@ -28,6 +29,9 @@ public class BdApiServiceImpl extends ServiceImpl<BdApiMapper, BdApi> implements
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      private final String OAUTH_URL = "https://u.baidu.com/oauth/page/index?platformId=4960345965958561794&appId={appId}&scope={scope}&state={state}&callback={callback}";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    @Value("${baidu.back-domain}")
 | 
	
		
			
				|  |  | +    private String backDomain;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 查询百度信息
 | 
	
		
			
				|  |  |       * 
 | 
	
	
		
			
				|  | @@ -117,7 +121,7 @@ public class BdApiServiceImpl extends ServiceImpl<BdApiMapper, BdApi> implements
 | 
	
		
			
				|  |  |          params.put("appId", api.getAppId());
 | 
	
		
			
				|  |  |          params.put("scope", "65,66,67,68,69,70,1009333,1009334,71,72,1009335,73,74,75,1001788,1001789,1001455,1001790,1001791,1002161,1002829,1004606");
 | 
	
		
			
				|  |  |          params.put("state", id.toString());
 | 
	
		
			
				|  |  | -        params.put("callback", "https://bd.runtzh.com/prod-api/baiduBack/callback");
 | 
	
		
			
				|  |  | +        params.put("callback", "http://" + backDomain +"/prod-api/baiduBack/callback");
 | 
	
		
			
				|  |  |          String filledUri = UriComponentsBuilder
 | 
	
		
			
				|  |  |                  .fromUriString(OAUTH_URL)
 | 
	
		
			
				|  |  |                  .buildAndExpand(params)
 |