|
|
@@ -29,6 +29,7 @@ import org.apache.rocketmq.spring.core.RocketMQTemplate;
|
|
|
import org.springframework.core.env.Environment;
|
|
|
import org.springframework.data.redis.core.BoundSetOperations;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@@ -207,6 +208,7 @@ public class OrderNotifyController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @PreAuthorize("hasRole('ADMIN')")
|
|
|
@PostMapping("/adapay/ordertest/{orderId}")
|
|
|
@ResponseBody
|
|
|
public void adapayNotifyTest(@PathVariable Long orderId, @RequestParam String transactionId) throws Exception {
|