|
|
|
@ -5,6 +5,7 @@ import com.jinritemai.cloud.base.api.BaseRequest;
|
|
|
|
|
import com.jinritemai.cloud.base.api.BaseResponse;
|
|
|
|
|
import com.jinritemai.cloud.base.api.ExtensionService;
|
|
|
|
|
import com.jinritemai.cloud.base.api.ExtensionServiceHandler;
|
|
|
|
|
import com.ms.api.dto.common.DoudianMessage;
|
|
|
|
|
import com.ms.biz.common.R;
|
|
|
|
|
import com.ms.biz.common.SPIBaseService;
|
|
|
|
|
import com.ms.biz.service.DoudianMsgService;
|
|
|
|
@ -22,15 +23,15 @@ public class DoudianMsgReceiveService extends SPIBaseService implements Extensio
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public BaseResponse<Void> handle(BaseRequest<List<String>> req) {
|
|
|
|
|
// initHandle(req);
|
|
|
|
|
|
|
|
|
|
// ----参数校验----
|
|
|
|
|
List<String> msgList = req.getData();
|
|
|
|
|
if (msgList == null || msgList.isEmpty()) {
|
|
|
|
|
R.ok();
|
|
|
|
|
return R.ok();
|
|
|
|
|
}
|
|
|
|
|
for (String msgStr: msgList) {
|
|
|
|
|
DoudianMessage msg = JSON.parseObject(msgStr, DoudianMessage.class);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
String msgBody = JSON.toJSONString(msgList);
|
|
|
|
|
log.info("CloudOpenMsgConsumer request: " + msgBody);
|
|
|
|
|
|
|
|
|
|
// ----逻辑校验----
|
|
|
|
|
|
|
|
|
|
// ----业务处理----
|
|
|
|
|