Commit aa833e047a06acc8620f947d41f7ef275ae1c003
1 parent
521bd63b
修改审核云spid获取失败的问题
Showing
2 changed files
with
8 additions
and
1 deletions
src/main/java/com/cnlive/shenhe/api/LiveApplyControllerApi.java
| @@ -55,7 +55,12 @@ public class LiveApplyControllerApi { | @@ -55,7 +55,12 @@ public class LiveApplyControllerApi { | ||
| 55 | //获取所有参数 | 55 | //获取所有参数 |
| 56 | String activityId = json.getString("activityId");//直播活动id | 56 | String activityId = json.getString("activityId");//直播活动id |
| 57 | String channelId = json.getString("channelId");//直播频道id | 57 | String channelId = json.getString("channelId");//直播频道id |
| 58 | - Integer spId = Integer.parseInt(json.getString("spId"));//spid | 58 | + Integer spId=null; |
| 59 | + try { | ||
| 60 | + spId=json.getInteger("spId"); | ||
| 61 | + } catch (Exception e) { | ||
| 62 | + spId=null; | ||
| 63 | + } | ||
| 59 | String sender = json.getString("sender");//直播发起人 | 64 | String sender = json.getString("sender");//直播发起人 |
| 60 | String mobile = json.getString("mobile");//联系方式 | 65 | String mobile = json.getString("mobile");//联系方式 |
| 61 | String callback = json.getString("callback");//回调地址 | 66 | String callback = json.getString("callback");//回调地址 |
src/main/resources/application.properties
| @@ -49,6 +49,8 @@ spring.rabbitmq.publisher-returns=true | @@ -49,6 +49,8 @@ spring.rabbitmq.publisher-returns=true | ||
| 49 | spring.rabbitmq.listener.direct.acknowledge-mode=manual | 49 | spring.rabbitmq.listener.direct.acknowledge-mode=manual |
| 50 | spring.rabbitmq.listener.simple.acknowledge-mode=manual | 50 | spring.rabbitmq.listener.simple.acknowledge-mode=manual |
| 51 | 51 | ||
| 52 | +topic_comment_shareH5=www.baidu.com?id= | ||
| 53 | + | ||
| 52 | #logback\u65e5\u5fd7\u4e2d\u4f7f\u7528 | 54 | #logback\u65e5\u5fd7\u4e2d\u4f7f\u7528 |
| 53 | spring.application.name=cnlive_shenhe_test | 55 | spring.application.name=cnlive_shenhe_test |
| 54 | spring.application.home=/usr/local/test_cnlive_shenhe/cnlive_shenhe/log | 56 | spring.application.home=/usr/local/test_cnlive_shenhe/cnlive_shenhe/log |