| | |
| | | import java.util.Iterator; |
| | | import java.util.Map; |
| | | |
| | | import com.google.gson.Gson; |
| | | import com.taobao.api.internal.util.StringUtils; |
| | | import com.yeshi.common.entity.taobao.TaoKeAppInfo; |
| | | import com.yeshi.fanli.exception.taobao.TaoKeApiException; |
| | |
| | | if (!StringUtil.isNullOrEmpty(app.getAdzoneId())) |
| | | params.put("adzone_id", app.getAdzoneId()); |
| | | params.put("sign", getSign(params, "md5", app).toUpperCase()); |
| | | |
| | | System.out.println(new Gson().toJson(params)); |
| | | |
| | | String result = TaoBaoHttpUtil.taoKeGet(params); |
| | | JSONObject data = JSONObject.fromObject(result); |
| | | if (data != null) { |
| | |
| | | if (taoKeAppInfo == null) { |
| | | System.out.println("请求。。。。。"); |
| | | String result = null; |
| | | try { |
| | | result = HttpUtil.get("http://193.112.35.168:8091/tb/taoke/getcanuseapp"); |
| | | } catch (Exception e) { |
| | | } |
| | | // try { |
| | | // result = HttpUtil.get("http://193.112.35.168:8091/tb/taoke/getcanuseapp"); |
| | | // } catch (Exception e) { |
| | | // } |
| | | |
| | | // 接口请求失败,默认设置成影视大全IOS的媒体信息 |
| | | if (StringUtil.isNullOrEmpty(result)) { |