| Line 797... |
Line 797... |
| 797 |
@ResponseBody
|
797 |
@ResponseBody
|
| 798 |
public String getStoreIndex(HttpServletRequest request, String state, String city, String storeCode)
|
798 |
public String getStoreIndex(HttpServletRequest request, String state, String city, String storeCode)
|
| 799 |
throws Throwable {
|
799 |
throws Throwable {
|
| 800 |
logger.info("Store code {}", storeCode);
|
800 |
logger.info("Store code {}", storeCode);
|
| 801 |
Map<String,Integer> map = retailerService.getStoreCodeRetailerMap();
|
801 |
Map<String,Integer> map = retailerService.getStoreCodeRetailerMap();
|
| - |
|
802 |
logger.info("retailer id {}", map.get(storeCode));
|
| 802 |
String retailerName = retailerService.getAllFofoRetailerIdNameMap().get(map.get(storeCode));
|
803 |
String retailerName = retailerService.getAllFofoRetailerIdNameMap().get(map.get(storeCode));
|
| 803 |
String html = partnerIndexService.getPartnerIndexHtml();
|
804 |
String html = partnerIndexService.getPartnerIndexHtml();
|
| 804 |
html = html.replace("<meta property=\"og:title\" content=\"Buy Mobiles and Accessories at exciting prices - SmartDukaan\">",
|
805 |
html = html.replace("<meta property=\"og:title\" content=\"Buy Mobiles and Accessories at exciting prices - SmartDukaan\">",
|
| 805 |
String.format("<meta property=\"og:title\" content=\"%s is now ONLINE\">", retailerName));
|
806 |
String.format("<meta property=\"og:title\" content=\"%s is now ONLINE\">", retailerName));
|
| 806 |
return html;
|
807 |
return html;
|