Subversion Repositories SmartDukaan

Rev

Rev 32934 | Rev 33063 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32934 Rev 32935
Line 1444... Line 1444...
1444
    }
1444
    }
1445
 
1445
 
1446
    @Autowired
1446
    @Autowired
1447
    PsiSmartService psiSmartService;
1447
    PsiSmartService psiSmartService;
1448
    @RequestMapping(value = "/psi/auth-endpoint", method = RequestMethod.GET)
1448
    @RequestMapping(value = "/psi/auth-endpoint", method = RequestMethod.GET)
1449
    public ResponseEntity<?> getPartnerPSIUrl(HttpServletRequest request, @RequestParam int cid, Model model) throws Exception {
1449
    public ResponseEntity<?> getPartnerPSIUrl(HttpServletRequest request) throws Exception {
1450
        LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
1450
        LoginDetails loginDetails = cookiesProcessor.getCookiesObject(request);
1451
        CustomRetailer customRetailer = retailerService.getAllFofoRetailers().get(loginDetails.getFofoId());
1451
        CustomRetailer customRetailer = retailerService.getAllFofoRetailers().get(loginDetails.getFofoId());
1452
        return responseSender.ok(psiSmartService.getRegistrationEndPoint(customRetailer.getMobileNumber()));
1452
        return responseSender.ok(psiSmartService.getRegistrationEndPoint(customRetailer.getMobileNumber()));
1453
    }
1453
    }
1454
 
1454