| Line 795... |
Line 795... |
| 795 |
|
795 |
|
| 796 |
@RequestMapping(value = "/stores/{state}/{city}/{storeCode}", method = RequestMethod.GET)
|
796 |
@RequestMapping(value = "/stores/{state}/{city}/{storeCode}", method = RequestMethod.GET)
|
| 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 |
int retailerId = retailerService.getStoreCodeRetailerMap().get(storeCode);
|
800 |
int retailerId = retailerService.getStoreCodeRetailerMap().get(storeCode.toUpperCase());
|
| 801 |
String retailerName = retailerService.getAllFofoRetailerIdNameMap().get(retailerId);
|
801 |
String retailerName = retailerService.getAllFofoRetailerIdNameMap().get(retailerId);
|
| 802 |
String html = partnerIndexService.getPartnerIndexHtml();
|
802 |
String html = partnerIndexService.getPartnerIndexHtml();
|
| 803 |
html = html.replace("<meta property=\"og:title\" content=\"Buy Mobiles and Accessories at exciting prices - SmartDukaan\">",
|
803 |
html = html.replace("<meta property=\"og:title\" content=\"Buy Mobiles and Accessories at exciting prices - SmartDukaan\">",
|
| 804 |
String.format("<meta property=\"og:title\" content=\"%s is now ONLINE\">", retailerName));
|
804 |
String.format("<meta property=\"og:title\" content=\"%s is now ONLINE\">", retailerName));
|
| 805 |
return html;
|
805 |
return html;
|