You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					
					
						
							35 lines
						
					
					
						
							1.1 KiB
						
					
					
				
			
		
		
	
	
							35 lines
						
					
					
						
							1.1 KiB
						
					
					
				| package com.ynxbd.common.dao.xbd;
 | |
| 
 | |
| import com.aliyun.tea.okhttp.OkRequestBody;
 | |
| import com.ynxbd.common.helper.http.OkHttpHelper;
 | |
| import lombok.AllArgsConstructor;
 | |
| import lombok.extern.slf4j.Slf4j;
 | |
| import okhttp3.FormBody;
 | |
| import okhttp3.MediaType;
 | |
| import okhttp3.RequestBody;
 | |
| 
 | |
| /**
 | |
|  * @author 李进才
 | |
|  * @ClassName OutTeamDao
 | |
|  * @Description description
 | |
|  * @date 2023/3/30 16:58
 | |
|  */
 | |
| 
 | |
| @Slf4j
 | |
| @AllArgsConstructor
 | |
| public class OutTeamDao {
 | |
|     private final String cloudFilmLink;
 | |
|     public String getCloudFilmPath(String info){
 | |
|         RequestBody requestBody = new FormBody.Builder()
 | |
|                 .add("info",info)
 | |
|                 .build();
 | |
|         String enInfo =  OkHttpHelper.post(cloudFilmLink+"/tickets/Encrypt",requestBody);
 | |
|         log.info("[内部团队接口请求]enInfo-{}",enInfo);
 | |
|         RequestBody enRequestBody = new FormBody.Builder()
 | |
|                 .add("enc_info",enInfo)
 | |
|                 .build();
 | |
|         String token = OkHttpHelper.post(cloudFilmLink+"/tickets/GetKey",enRequestBody);
 | |
|         log.info("[内部团队接口请求]token-{}",token);
 | |
|         return token;
 | |
|     }
 | |
| }
 | |
| 
 |