Merge branch 'master' into hotfix_0307
Showing
4 changed files
with
27 additions
and
3 deletions
@@ -27,6 +27,7 @@ | @@ -27,6 +27,7 @@ | ||
27 | <value>/ActivateUnionRest/test</value> | 27 | <value>/ActivateUnionRest/test</value> |
28 | <value>/MobvistaUnionRest/addUnion4Mobvista</value> | 28 | <value>/MobvistaUnionRest/addUnion4Mobvista</value> |
29 | <value>/ActivateUnionRest/addActivate</value> | 29 | <value>/ActivateUnionRest/addActivate</value> |
30 | + <value>/ActivateUnionRest/addActivateLog</value> | ||
30 | <value>/ActivateUnionRest/queryActivateDeviceId</value> | 31 | <value>/ActivateUnionRest/queryActivateDeviceId</value> |
31 | <value>/UnionRest/addYas</value> | 32 | <value>/UnionRest/addYas</value> |
32 | <value>/ActivateUnionRest/queryActivateCount</value> | 33 | <value>/ActivateUnionRest/queryActivateCount</value> |
@@ -190,6 +190,29 @@ public class ActivateUnionRest { | @@ -190,6 +190,29 @@ public class ActivateUnionRest { | ||
190 | return new ActiveUnionResponseBO(); | 190 | return new ActiveUnionResponseBO(); |
191 | } | 191 | } |
192 | 192 | ||
193 | + | ||
194 | + @RequestMapping("/addActivateLog") | ||
195 | + @ResponseBody public ActiveUnionResponseBO activate(ActivateUnionRequestVO request) { | ||
196 | + JSONObject j = new JSONObject(); | ||
197 | + j.put("apptype", request.getClient_type()); | ||
198 | + j.put("appid", request.getAppid()); | ||
199 | + j.put("idfa", request.getIdfa()); | ||
200 | + j.put("imei", request.getImei()); | ||
201 | + j.put("udid", request.getUdid()); | ||
202 | + j.put("dateid", request.getDateId()); | ||
203 | + j.put("source", request.getSourceName()); | ||
204 | + j.put("source_id",request.getSource()); | ||
205 | + j.put("ip", request.getClientIp()); | ||
206 | + j.put("collect_ip", ""); | ||
207 | + j.put("app_key", request.getAppkey()); | ||
208 | + j.put("active_type", "90"); | ||
209 | + j.put("tdid", request.getTdid()); | ||
210 | + j.put("interfaceType",request.getInterfaceType()); | ||
211 | + activeDingdang.info(j.toString()); | ||
212 | + return new ActiveUnionResponseBO(); | ||
213 | + } | ||
214 | + | ||
215 | + | ||
193 | /** | 216 | /** |
194 | * 给品友留的后门,如果定时任务没有启动,则通过curl调用接口,直接获取数据,并发送给品友 | 217 | * 给品友留的后门,如果定时任务没有启动,则通过curl调用接口,直接获取数据,并发送给品友 |
195 | */ | 218 | */ |
@@ -221,7 +221,8 @@ public class PinYouServiceImpl implements IPinYouService { | @@ -221,7 +221,8 @@ public class PinYouServiceImpl implements IPinYouService { | ||
221 | log.info("pinyou sendUrl union success url={}, and result={}", url, pair); | 221 | log.info("pinyou sendUrl union success url={}, and result={}", url, pair); |
222 | if (pair.getLeft() != 200) { | 222 | if (pair.getLeft() != 200) { |
223 | log.warn("pinyou callback error with request={}", url); | 223 | log.warn("pinyou callback error with request={}", url); |
224 | - redisListCache.rightPushAll(UNION_SENDFAIL_KEY,url,24, TimeUnit.HOURS); | 224 | + url = URLDecoder.decode(url,"UTF-8"); |
225 | + redisListCache.rightPushAll(UNION_SENDFAIL_KEY,url,6, TimeUnit.MINUTES); | ||
225 | return new UnionResponse(204, "callback error"); | 226 | return new UnionResponse(204, "callback error"); |
226 | } | 227 | } |
227 | } catch (Exception e) { | 228 | } catch (Exception e) { |
@@ -63,12 +63,11 @@ public class PinYouTask { | @@ -63,12 +63,11 @@ public class PinYouTask { | ||
63 | List<ViewPinYouRequestBO> viewPinYouRequestBOList = new ArrayList<>(); | 63 | List<ViewPinYouRequestBO> viewPinYouRequestBOList = new ArrayList<>(); |
64 | int viewSizeInt = viewSize == null ? 0 : viewSize.intValue(); | 64 | int viewSizeInt = viewSize == null ? 0 : viewSize.intValue(); |
65 | int transSizeInt = transSize == null ? 0:transSize.intValue(); | 65 | int transSizeInt = transSize == null ? 0:transSize.intValue(); |
66 | - log.info("viewSize is {},transSize is {}",viewSizeInt,transSizeInt); | 66 | + log.info("viewSize is {},transSize is {},failSize is {}",viewSizeInt,transSizeInt,failSize); |
67 | List<TransPinYouRequestBO> transPinYouRequestBOList = new ArrayList<>(); | 67 | List<TransPinYouRequestBO> transPinYouRequestBOList = new ArrayList<>(); |
68 | if(transSizeInt>0){ | 68 | if(transSizeInt>0){ |
69 | for(int i=0; i < limit; i++){ | 69 | for(int i=0; i < limit; i++){ |
70 | TransPinYouRequestBO transPinYouRequestBO = redisListCache.rightPop(UNION_TRANS_KEY, TransPinYouRequestBO.class); | 70 | TransPinYouRequestBO transPinYouRequestBO = redisListCache.rightPop(UNION_TRANS_KEY, TransPinYouRequestBO.class); |
71 | - log.info("transPinYouRequestBO is {}",transPinYouRequestBO); | ||
72 | transPinYouRequestBOList.add(transPinYouRequestBO); | 71 | transPinYouRequestBOList.add(transPinYouRequestBO); |
73 | } | 72 | } |
74 | } | 73 | } |
-
Please register or login to post a comment