傅行帆 5 years ago
parent
commit
80c327bb25

+ 5
- 2
src/main/java/com/huiju/estateagents/eContract/service/impl/TaContractServiceImpl.java View File

182
      * @return
182
      * @return
183
      */
183
      */
184
     private String getFddDownServerHost(String miniappId,String subUrl) {
184
     private String getFddDownServerHost(String miniappId,String subUrl) {
185
+        if (StringUtils.isEmpty(subUrl)){
186
+            return subUrl;
187
+        }
185
         TaMiniapp taMiniapp = taMiniappMapper.selectById(miniappId);
188
         TaMiniapp taMiniapp = taMiniappMapper.selectById(miniappId);
186
         int index = subUrl.indexOf("/");
189
         int index = subUrl.indexOf("/");
187
         int twoIndex = subUrl.indexOf("/",index+1);
190
         int twoIndex = subUrl.indexOf("/",index+1);
225
         req.setSign_keyword(taContractBusiness.getCustomerKeywords());
228
         req.setSign_keyword(taContractBusiness.getCustomerKeywords());
226
         req.setKeyword_strategy(taContractBusiness.getCustomerStrategy());
229
         req.setKeyword_strategy(taContractBusiness.getCustomerStrategy());
227
         req.setDoc_title(taContractBusiness.getContractTemplateName());
230
         req.setDoc_title(taContractBusiness.getContractTemplateName());
228
-        String redirectUrl = URLEncoder.encode("/onlineSelling/pages/raiseMoney/signResult" + taContract.getInvoiceTargetId(), "utf-8");
229
-        String return_url=  fadadaProperties.getAuthReturnUrl() + "?appid=123&redirect="+ redirectUrl;
231
+        String redirectUrl = URLEncoder.encode("/onlineSelling/pages/raiseMoney/signResult?id=" + taContract.getInvoiceTargetId(), "utf-8");
232
+        String return_url=  fadadaProperties.getRedirectUrl() + "?appid=123&redirect="+ redirectUrl;
230
         req.setReturn_url(return_url);
233
         req.setReturn_url(return_url);
231
         req.setNotify_url(fadadaProperties.getSignNotify());
234
         req.setNotify_url(fadadaProperties.getSignNotify());
232
         String signUrl = base.invokeExtSign(req);
235
         String signUrl = base.invokeExtSign(req);