Compare commits

..

2 Commits

Author SHA1 Message Date
Leo
82c54f409c 基本完成转链。富贵指日可待! 2025-04-05 01:45:09 +08:00
Leo
79775dde63 重构前 2025-04-04 20:27:55 +08:00
4 changed files with 548 additions and 362 deletions

View File

@@ -0,0 +1,22 @@
package cn.van.business.util;
import static cn.van.business.util.JDUtil.UserInteractionState.GiftMoneyStep.STEP_QUANTITY;
/**
* @author Leo
* @version 1.0
* @create 2025/4/4 20:46
* @description
*/
// 实现金额处理步骤
class AmountStepHandler implements FlowStepHandler {
public void handle(JDUtil util, String wxid, String input, JDUtil.UserInteractionState state) {
if (!util.isValidAmount(input)) {
util.wxUtil.sendTextMessage(wxid, "金额格式错误", 1, wxid);
return;
}
state.getCollectedFields().put("amount", input);
state.setCurrentStep(STEP_QUANTITY);
}
}

View File

@@ -0,0 +1,11 @@
package cn.van.business.util;
/**
* @author Leo
* @version 1.0
* @create 2025/4/4 20:45
* @description
*/
public interface FlowStepHandler {
void handle(JDUtil util, String wxid, String input, JDUtil.UserInteractionState state);
}

File diff suppressed because it is too large Load Diff

View File

@@ -61,5 +61,5 @@ rocketmq:
consume-thread-max: 64 # 消费线程池最大线程数 consume-thread-max: 64 # 消费线程池最大线程数
consume-message-batch-max-size: 64 # 批量消费最大消息数 consume-message-batch-max-size: 64 # 批量消费最大消息数
isRunning: isRunning:
wx: false wx: true
jd: false jd: true