1
This commit is contained in:
6
pom.xml
6
pom.xml
@@ -100,9 +100,9 @@
|
|||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>van.cn</groupId>
|
<groupId>com.jd</groupId>
|
||||||
<artifactId>jd-jdk</artifactId>
|
<artifactId>jdk</artifactId>
|
||||||
<version>1.0</version>
|
<version>2.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import javax.annotation.Resource;
|
|||||||
* @description:
|
* @description:
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("order")
|
@RequestMapping("/order")
|
||||||
public class OrderController {
|
public class OrderController {
|
||||||
|
|
||||||
public static String TOKEN = "cc0313";
|
public static String TOKEN = "cc0313";
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import org.springframework.stereotype.Service;
|
|||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.Base64;
|
import java.util.Base64;
|
||||||
|
|
||||||
import static cn.hutool.core.thread.ThreadUtil.sleep;
|
|
||||||
import static cn.van.business.util.WXUtil.WX_BASE_URL;
|
import static cn.van.business.util.WXUtil.WX_BASE_URL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -31,6 +30,7 @@ public class MessageConsumerService implements RocketMQListener<JSONObject> {
|
|||||||
|
|
||||||
// create a rate limiter of 1 qps
|
// create a rate limiter of 1 qps
|
||||||
RateLimiter rateLimiter = RateLimiter.create(0.5);
|
RateLimiter rateLimiter = RateLimiter.create(0.5);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onMessage(JSONObject jsonObject) {
|
public void onMessage(JSONObject jsonObject) {
|
||||||
// 处理消息
|
// 处理消息
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import org.apache.rocketmq.common.message.Message;
|
|||||||
import org.apache.rocketmq.spring.core.RocketMQTemplate;
|
import org.apache.rocketmq.spring.core.RocketMQTemplate;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user