yonge 2 年之前
父节点
当前提交
5adc8d599a

+ 1 - 1
mec-web/src/main/java/com/ym/mec/web/config/ResourceServerConfig.java

@@ -43,7 +43,7 @@ public class ResourceServerConfig extends ResourceServerConfigurerAdapter {
                         "/tenantInfo/info/*", "/tenantInfo/checkInfo/*", "/tenantInfo/pay/*","/tenantInfo/testCheck", "/tenantInfo/getContract/*",
                         "/tenantPreJoin/add","/imLiveBroadcastRoom/queryRoomInfo","/imLiveBroadcastRoom/test",
                         "/eduOrganization/queryAllOrgan","/eduOrganization/queryAll","/eduOrganization/getOrganCooperation","/import/oaUploadFile",
-                        "/tenantInfo/callback","/adapay/callback","/temp/*"
+                        "/tenantInfo/callback","/adapay/callback","/temp/*","/yeepay/callback/**"
                 )
                 .permitAll().anyRequest().authenticated().and().httpBasic();
     }

+ 13 - 0
mec-web/src/main/java/com/ym/mec/web/controller/payment/YeepayController.java

@@ -141,6 +141,19 @@ public class YeepayController extends BaseController {
 			
 			logger.info("易宝支付回调信息:response:{} plaintText:{}", content, dto.getPlainText());
 			
+			JSONObject dataObj = JSON.parseObject(dto.getPlainText());
+			
+			if("COMPLETED".equals(dataObj.getString("applicationStatus"))) {
+				//审核成功
+				hfMember.setStatus("succeeded");
+				hfMemberService.update(hfMember);
+			}else if("REVIEW_BACK".equals(dataObj.getString("applicationStatus"))) {
+				//审核驳回
+				hfMember.setStatus("failed");
+				hfMember.setMemo(dataObj.getString("returnMsg"));
+				hfMemberService.update(hfMember);
+			}
+			
 			return "SUCCESS";
 		} catch (Exception e) {
 			// TODO Auto-generated catch block