|
|
|
@ -16,6 +16,7 @@ import lombok.AllArgsConstructor;
|
|
|
|
|
import lombok.NoArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springblade.core.tool.utils.BeanUtil; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
import org.springblade.core.tool.utils.SpringUtil; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@ -125,12 +126,10 @@ public class InteractiveHandler extends TextWebSocketHandler {
|
|
|
|
|
|
|
|
|
|
private void handleDefaultChoose(JSONObject messageContext,String sessionId) { |
|
|
|
|
IInteractiveService interactiveService = SpringUtil.getBean(IInteractiveService.class); |
|
|
|
|
String userId = messageContext.getString("userId"); |
|
|
|
|
String funcCode = messageContext.getString("funcCode"); |
|
|
|
|
Map<String, Object> extra = new HashMap<>(2); |
|
|
|
|
extra.put("func",funcCode); |
|
|
|
|
Map<String, Object> extra = messageContext.toJavaObject(Map.class); |
|
|
|
|
extra.put("func",extra.get("funcCode")); |
|
|
|
|
extra.put("data",messageContext.getObject("selection", JSONObject.class)); |
|
|
|
|
interactiveService.specialAsk(sessionId,userId,extra); |
|
|
|
|
interactiveService.specialAsk(sessionId, (String) extra.get("userId"),extra); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void handleVideoChoose(JSONObject messageContext,String sessionId) { |
|
|
|
|