admin
2020-05-31 2a48f2bd979d56ce4114ba9d56efaf49bab705d7
fanli/src/main/java/com/yeshi/fanli/util/vipshop/VipShopApiUtil.java
@@ -19,6 +19,7 @@
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.yeshi.fanli.dto.vip.VIPConvertResultDTO;
import com.yeshi.fanli.dto.vip.VIPSearchFilter;
import com.yeshi.fanli.dto.vip.VIPSearchResult;
import com.yeshi.fanli.dto.vip.goods.VIPGoodsInfo;
@@ -170,7 +171,7 @@
    * 
    * @param goodsId
    */
   public static String convertLink(String goodsId, String tag) {
   public static VIPConvertResultDTO convertLink(String goodsId, String tag) {
      JSONObject taskParams = new JSONObject();
      JSONArray goodsIdArray = new JSONArray();
      goodsIdArray.add(goodsId);
@@ -182,7 +183,8 @@
      System.out.println(result);
      JSONObject resultJSON = JSONObject.fromObject(result);
      if (resultJSON.optInt("returnCode") == 0) {
         return resultJSON.optJSONObject("result").optJSONArray("urlInfoList").optJSONObject(0).optString("url");
         String re = resultJSON.optJSONObject("result").optJSONArray("urlInfoList").optJSONObject(0).toString();
         return new Gson().fromJson(re, VIPConvertResultDTO.class);
      }
      return null;
   }