Sfoglia il codice sorgente

kollus media url 추가

gagamel 5 anni fa
parent
commit
ef9c4df220

+ 3 - 0
src/main/java/com/style24/core/biz/thirdparty/KollusApi.java

@@ -33,6 +33,9 @@ public class KollusApi {
 	// URL
 	private String apiUrl = "http://upload.kr.kollus.com/api/v1/create_url?access_token=50oytl7t11315o5l";
 
+	// Media URL
+	public static String mediaUrl = "http://v.kr.kollus.com";
+
 	@Autowired
 	private RestTemplate restTemplate;
 

+ 6 - 0
src/main/java/com/style24/core/support/controller/TscBaseController.java

@@ -29,6 +29,7 @@ import org.springframework.web.bind.annotation.ModelAttribute;
 import org.springframework.web.bind.annotation.ResponseBody;
 
 import com.fasterxml.jackson.databind.JsonMappingException;
+import com.style24.core.biz.thirdparty.KollusApi;
 import com.style24.core.support.exception.TscNoSessionException;
 import com.style24.core.support.message.TscMessageByLocale;
 
@@ -72,6 +73,11 @@ public class TscBaseController {
 		return env;
 	}
 
+	@ModelAttribute("kollusMediaUrl")
+	public String getMediaUrl() {
+		return KollusApi.mediaUrl;
+	}
+
 	@ResponseBody
 	public GagaResponse ok() {
 		return GagaResponse.of(GagaResponseStatus.SUCCESS.getCode(), "SUCCESS");