|
@@ -1,6 +1,7 @@
|
|
|
package com.chelvc.cloud.maintain.controller;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.validation.Valid;
|
|
|
import javax.validation.constraints.Min;
|
|
|
import javax.validation.constraints.NotEmpty;
|
|
@@ -20,6 +21,7 @@ import com.chelvc.cloud.vehicle.client.param.*;
|
|
|
import com.chelvc.framework.base.annotation.ResponseWrapping;
|
|
|
import com.chelvc.framework.base.context.SessionContextHolder;
|
|
|
import com.chelvc.framework.common.model.Pagination;
|
|
|
+import com.chelvc.framework.security.annotation.Authorize;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
@@ -172,7 +174,13 @@ public class MerchantController {
|
|
|
*
|
|
|
*/
|
|
|
@PostMapping("/merchant/apply/notify")
|
|
|
- public void merchantApplyNotify(@RequestBody MerchantApplyRecordParam param) {
|
|
|
+ @Authorize(enabled = false)
|
|
|
+ public void merchantApplyNotify(HttpServletRequest request,
|
|
|
+ @RequestBody MerchantApplyRecordParam param) {
|
|
|
+ String merchantId = request.getHeader("merchantId");
|
|
|
+ String encryptKey = request.getHeader("encryptKey");
|
|
|
+ param.setMerchantId(merchantId);
|
|
|
+ param.setEncryptKey(encryptKey);
|
|
|
this.merchantClient.merchantApplyNotify(param);
|
|
|
}
|
|
|
}
|