|
@@ -31,12 +31,7 @@ import com.chelvc.framework.security.annotation.Security;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 商家接口
|
|
* 商家接口
|
|
@@ -185,12 +180,26 @@ public class MerchantController {
|
|
*/
|
|
*/
|
|
@Security(enabled = false)
|
|
@Security(enabled = false)
|
|
@PostMapping("/merchant/apply/notify")
|
|
@PostMapping("/merchant/apply/notify")
|
|
- public void merchantApplyNotify(HttpServletRequest request,
|
|
|
|
|
|
+ public String merchantApplyNotify(HttpServletRequest request,
|
|
@RequestBody SxyNotifyParam param) {
|
|
@RequestBody SxyNotifyParam param) {
|
|
String merchantId = request.getHeader("merchantId");
|
|
String merchantId = request.getHeader("merchantId");
|
|
String encryptKey = request.getHeader("encryptKey");
|
|
String encryptKey = request.getHeader("encryptKey");
|
|
param.setMerchantId(merchantId);
|
|
param.setMerchantId(merchantId);
|
|
param.setEncryptKey(encryptKey);
|
|
param.setEncryptKey(encryptKey);
|
|
- this.merchantClient.merchantApplyNotify(param);
|
|
|
|
|
|
+ return this.merchantClient.merchantApplyNotify(param);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 电子签回调接口
|
|
|
|
+ *
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/merchant/reSign/notify")
|
|
|
|
+ public String merchantReSignNotify(HttpServletRequest request,
|
|
|
|
+ @RequestParam("frequency") Integer frequency, @RequestBody SxyNotifyParam param) {
|
|
|
|
+ String merchantId = request.getHeader("merchantId");
|
|
|
|
+ String encryptKey = request.getHeader("encryptKey");
|
|
|
|
+ param.setMerchantId(merchantId);
|
|
|
|
+ param.setEncryptKey(encryptKey);
|
|
|
|
+ return this.merchantClient.merchantReSignNotify(frequency, param);
|
|
}
|
|
}
|
|
}
|
|
}
|