|
@@ -11,6 +11,7 @@ import com.example.nngkxxdp.program.entity.jsonobj.HlNewsPaperDTO;
|
|
|
import com.example.nngkxxdp.program.service.HLWIntefaceService;
|
|
|
import com.example.nngkxxdp.util.SendUtil;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
@@ -22,9 +23,11 @@ import java.util.Map;
|
|
|
@RequiredArgsConstructor
|
|
|
public class HLWIntefaceImpl implements HLWIntefaceService {
|
|
|
private final HlwNewsPaperDao hlwNewsPaperDao;
|
|
|
+ @Value("${hlw}")
|
|
|
+ private String address;
|
|
|
@Override
|
|
|
public Map<String, Object> favorites(String userId) {
|
|
|
-
|
|
|
+// HttpUtil.post("")
|
|
|
return null;
|
|
|
}
|
|
|
|
|
@@ -45,7 +48,7 @@ public class HLWIntefaceImpl implements HLWIntefaceService {
|
|
|
requiredParameter.put("appId", 4);
|
|
|
requiredParameter.put("columnId", 14009);
|
|
|
requiredParameter.put("isCarousel", false);
|
|
|
- String post = HttpUtil.post("http://222.178.212.166:18088" + MiniConstant.HL_NEWSINFO, requiredParameter);
|
|
|
+ String post = HttpUtil.post(address + MiniConstant.HL_NEWSINFO, requiredParameter);
|
|
|
JSONObject jsonObject = JSONUtil.parseObj(post);
|
|
|
if (Convert.toInt(jsonObject.get("code")) !=0){
|
|
|
return SendUtil.send(false,MiniConstant.RESULT_FAILED);
|