| | |
| | | @RequestMapping("/wxmp/api/v1/dynamic") |
| | | public class DynamicController { |
| | | |
| | | |
| | | |
| | | @Resource |
| | | private WXMPDynamicInfoService wxmpDynamicInfoService; |
| | | |
| | |
| | | JSONObject paramsJson = JSONObject.fromObject(params); |
| | | // 京东转链 |
| | | String url = paramsJson.optString("url"); |
| | | String link = JDApiUtil.convertLinkWithSubUnionId(url, null, null, pidManager.getPidCache(acceptData.getSystem(), Constant.SOURCE_TYPE_JD, SystemPIDInfo.PidType.fanli), uid + ""); |
| | | String link = null; |
| | | try { |
| | | link = JDApiUtil.convertLinkWithSubUnionId(url, null, null, pidManager.getPidCache(acceptData.getSystem(), Constant.SOURCE_TYPE_JD, SystemPIDInfo.PidType.fanli), uid + ""); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | if (StringUtil.isNullOrEmpty(link)) { |
| | | out.print(JsonUtil.loadFalseResult("转链失败")); |