Browse Source

新需求

傅行帆 5 years ago
parent
commit
9774735c0c

+ 6
- 6
src/main/java/com/huiju/estateagents/eContract/controller/TaCompanyController.java View File

452
      * 自动授权签章回调
452
      * 自动授权签章回调
453
      */
453
      */
454
     @RequestMapping(value = "/fadd/autoAuthCompanySeal", method = RequestMethod.POST)
454
     @RequestMapping(value = "/fadd/autoAuthCompanySeal", method = RequestMethod.POST)
455
-    public void autoAuthCompanySealNotify(@RequestParam String transactionId,
456
-                                          @RequestParam Integer contractId,
457
-                                          @RequestParam String downloadUrl,
458
-                                          @RequestParam String viewpdfUrl,
459
-                                          @RequestParam String resultCode,
460
-                                          @RequestParam String resultDesc,
455
+    public void autoAuthCompanySealNotify(@RequestParam(value = "transaction_id",required = false) String transactionId,
456
+                                          @RequestParam(value = "contract_id",required = false) Integer contractId,
457
+                                          @RequestParam(value = "download_url",required = false) String downloadUrl,
458
+                                          @RequestParam(value = "viewpdf_url",required = false) String viewpdfUrl,
459
+                                          @RequestParam(value = "result_code",required = false) String resultCode,
460
+                                          @RequestParam(value = "result_desc",required = false) String resultDesc,
461
                                           HttpServletRequest request){
461
                                           HttpServletRequest request){
462
         TaContract taContract = new TaContract();
462
         TaContract taContract = new TaContract();
463
         taContract.setContractId(contractId);
463
         taContract.setContractId(contractId);

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

173
         req.setSign_keyword(taContractBusiness.getCustomerKeywords());
173
         req.setSign_keyword(taContractBusiness.getCustomerKeywords());
174
         req.setKeyword_strategy(taContractBusiness.getCustomerStrategy());
174
         req.setKeyword_strategy(taContractBusiness.getCustomerStrategy());
175
         req.setDoc_title(taContractBusiness.getContractTemplateName());
175
         req.setDoc_title(taContractBusiness.getContractTemplateName());
176
-        req.setReturn_url("/onlineSelling/pages/raiseMoney/signResult");
176
+//        req.setReturn_url("/onlineSelling/pages/raiseMoney/signResult");
177
         req.setNotify_url(fadadaProperties.getSignNotify());
177
         req.setNotify_url(fadadaProperties.getSignNotify());
178
         String signUrl = base.invokeExtSign(req);
178
         String signUrl = base.invokeExtSign(req);
179
         return signUrl;
179
         return signUrl;

+ 4
- 4
src/main/java/com/huiju/estateagents/eContract/service/impl/TaContractUserServiceImpl.java View File

60
         log.info("========法大大个人注册=======");
60
         log.info("========法大大个人注册=======");
61
         //在法大大注册个人用户
61
         //在法大大注册个人用户
62
         FddClientBase base = new FddClientBase(fadadaProperties.getAppId(),fadadaProperties.getAppSecret(),fadadaProperties.getVersion(),fadadaProperties.getServeHost());
62
         FddClientBase base = new FddClientBase(fadadaProperties.getAppId(),fadadaProperties.getAppSecret(),fadadaProperties.getVersion(),fadadaProperties.getServeHost());
63
-        //小程序id为注册账号
64
-        String open_id = person.getMiniappId();
63
+        //小程序open——id为注册账号
64
+        String open_id = person.getMiniOpenid();
65
         //account_type 1是个人注册
65
         //account_type 1是个人注册
66
         String result =base.invokeregisterAccount(open_id,"1");
66
         String result =base.invokeregisterAccount(open_id,"1");
67
         log.info("法大大注册信息{}", result);
67
         log.info("法大大注册信息{}", result);
86
         String verifyed_way = "0";
86
         String verifyed_way = "0";
87
         String page_modify = "1";
87
         String page_modify = "1";
88
         String notify_url = fadadaProperties.getCompanyNotify();
88
         String notify_url = fadadaProperties.getCompanyNotify();
89
-        String return_url= "/onlineSelling/pages/raiseMoney/Certification?id=" + taRaiseRecord.getRaiseRecordId();
89
+//        String return_url= "/onlineSelling/pages/raiseMoney/Certification?id=" + taRaiseRecord.getRaiseRecordId();
90
         String customer_ident_type = "0";
90
         String customer_ident_type = "0";
91
         String personResult = personverify.invokePersonVerifyUrl(customer_id,verifyed_way,
91
         String personResult = personverify.invokePersonVerifyUrl(customer_id,verifyed_way,
92
-                page_modify,notify_url,return_url,null,customer_ident_type,
92
+                page_modify,notify_url,null,null,customer_ident_type,
93
                 null,null,null,null,null);
93
                 null,null,null,null,null);
94
 
94
 
95
         String data = JSON.parseObject(personResult).getString("data");
95
         String data = JSON.parseObject(personResult).getString("data");