Commit 00e9351b3d873da3777d0752c753a07a8a6fe1bf
1 parent
02711d27
update
Showing
3 changed files
with
5 additions
and
14 deletions
src/main/java/com/cnlive/shenhe/controller/VideosController.java
| 1 | 1 | package com.cnlive.shenhe.controller; |
| 2 | 2 | |
| 3 | -import com.alibaba.fastjson.JSON; | |
| 4 | 3 | import com.alibaba.fastjson.JSONObject; |
| 5 | 4 | import com.cnlive.shenhe.bean.ErrorEnum; |
| 6 | 5 | import com.cnlive.shenhe.bean.ResponseBean; |
| ... | ... | @@ -9,19 +8,11 @@ import com.cnlive.shenhe.entity.ShyVideos; |
| 9 | 8 | import com.cnlive.shenhe.serviceImpl.VideosServiceImpl; |
| 10 | 9 | import com.cnlive.shenhe.utils.AuditPass; |
| 11 | 10 | import com.cnlive.shenhe.utils.CommonConst; |
| 12 | -import com.cnlive.shenhe.utils.CommonUtils; | |
| 13 | -import com.cnlive.shenhe.utils.HttpUtil; | |
| 14 | 11 | import org.springframework.beans.factory.annotation.Autowired; |
| 15 | -import org.springframework.beans.factory.annotation.Value; | |
| 16 | 12 | import org.springframework.stereotype.Controller; |
| 17 | 13 | import org.springframework.web.bind.annotation.*; |
| 18 | - | |
| 19 | -import java.io.UnsupportedEncodingException; | |
| 20 | -import java.security.NoSuchAlgorithmException; | |
| 21 | 14 | import java.util.Arrays; |
| 22 | -import java.util.HashMap; | |
| 23 | 15 | import java.util.List; |
| 24 | -import java.util.Map; | |
| 25 | 16 | |
| 26 | 17 | /** |
| 27 | 18 | * @Auther: chenhao | ... | ... |
src/main/java/com/cnlive/shenhe/utils/AuditPass.java
| ... | ... | @@ -14,11 +14,11 @@ import java.util.Map; |
| 14 | 14 | */ |
| 15 | 15 | public class AuditPass { |
| 16 | 16 | |
| 17 | - @Value("http://mam.innerapi.cnlive.com/v1/inner/ShenHeInfo/shenheNotify") | |
| 17 | + @Value("${url}") | |
| 18 | 18 | private static String url; |
| 19 | - @Value("AUDIT") | |
| 19 | + @Value("${platformKey}") | |
| 20 | 20 | private static String platformKey; |
| 21 | - @Value("10011438") | |
| 21 | + @Value("${platformValue}") | |
| 22 | 22 | private static String platformValue; |
| 23 | 23 | public static String auditPass(String activity_id,int state,String attr_tags,String msg){ |
| 24 | 24 | String token = null; | ... | ... |
src/main/resources/application.properties
| ... | ... | @@ -17,5 +17,5 @@ sync_users_app_key=314a9dd4-a9b7-4c12-bbbe-1150a36491ae |
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | url=http://mam.innerapi.cnlive.com/v1/inner/ShenHeInfo/shenheNotify |
| 20 | -SplatformKey =AUDIT; | |
| 21 | -platformValue=10011438; | |
| 22 | 20 | \ No newline at end of file |
| 21 | +platformKey =AUDIT | |
| 22 | +platformValue=10011438 | |
| 23 | 23 | \ No newline at end of file | ... | ... |