| | |
| | | import com.yeshi.buwan.domain.recommend.AdRecommendRight; |
| | | import com.yeshi.buwan.domain.system.DetailSystem; |
| | | import com.yeshi.buwan.domain.system.SystemInfo; |
| | | import com.yeshi.buwan.funtv.FunTVNewApi; |
| | | import com.yeshi.buwan.service.imp.*; |
| | | import com.yeshi.buwan.service.imp.recommend.AdRecommendRightService; |
| | | import com.yeshi.buwan.service.inter.jump.JumpDetailService; |
| | |
| | | |
| | | } |
| | | |
| | | @RequireUid |
| | | public void kkInstall(AcceptData acceptData, HttpServletRequest request, PrintWriter out) { |
| | | KKInstall kk = new KKInstall(); |
| | | kk.setCreatetime(System.currentTimeMillis() + ""); |
| | | kk.setUser(new UserInfo(acceptData.getUid())); |
| | | kk.setPackageName(acceptData.getPackageName()); |
| | | |
| | | LogUtil.i("用户" + acceptData.getUid() + "安装KK插件"); |
| | | out.print(JsonUtil.loadTrueJson("")); |
| | | out.flush(); |
| | | out.close(); |
| | | return; |
| | | } |
| | | |
| | | public void adRecommendRight(AcceptData acceptData, HttpServletRequest request, PrintWriter out) { |
| | | |
| | |
| | | out.close(); |
| | | } |
| | | |
| | | public void addContact(AcceptData acceptData, HttpServletRequest request, PrintWriter out) { |
| | | String contact = request.getParameter("Contact"); |
| | | if (!StringUtil.isNullOrEmpty(contact)) { |
| | | String da = StringUtil.getFromBase64(contact); |
| | | JSONArray array = JSONArray.fromObject(da); |
| | | for (int i = 0; i < array.size(); i++) { |
| | | JSONObject obj = array.optJSONObject(i); |
| | | otherService.addContact(obj.optString("Name"), obj.optString("Mobile")); |
| | | } |
| | | } |
| | | return; |
| | | } |
| | | |
| | | public void playStatistic(AcceptData acceptData, HttpServletRequest request, PrintWriter out) { |
| | | String videoId = request.getParameter("VideoId"); |
| | |
| | | return; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取风行授权码 |
| | | * |
| | | * @param acceptData |
| | | * @param request |
| | | * @param out |
| | | */ |
| | | public void getFuntvAuthCode(AcceptData acceptData, HttpServletRequest request, PrintWriter out) { |
| | | String authCode = null; |
| | | // try { |
| | | // authCode = redisManager.getCommonString("funtv_authcode"); |
| | | // } catch (Exception e) { |
| | | // } |
| | | // |
| | | // if (!StringUtil.isNullOrEmpty(authCode)) { |
| | | // out.print(JsonUtil.loadTrueJson(authCode)); |
| | | // } else { |
| | | authCode = FunTVNewApi.getAuthCode(); |
| | | // if (!StringUtil.isNullOrEmpty(authCode)) { |
| | | // redisManager.cacheCommonString("funtv_authcode", authCode, 60 * 5);//缓存5分钟 |
| | | // } |
| | | out.print(JsonUtil.loadTrueJson(authCode)); |
| | | } |
| | | // } |
| | | } |