Przeglądaj źródła

修改发现推送问题代码

pull/382/head
wanjing 10 miesięcy temu
rodzic
commit
14b002fee6
2 zmienionych plików z 17 dodań i 2 usunięć
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/constant/SystemConstant.java
  2. +16
    -1
      tuoheng-service/tuoheng-admin/src/test/java/com/tuoheng/admin/service/DspCallbackServiceTest.java

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/constant/SystemConstant.java Wyświetl plik

@@ -22,7 +22,7 @@ public interface SystemConstant {
/**
* 推送微信消息
*/
String API_WEIXIN_SEND_MESSAGE = "/telecomumale/miniprogram/weiXin/send/message";
String API_WEIXIN_SEND_MESSAGE = "/freeway/miniprogram/weiXin/send/message";

/**
* 机场平台:获取航点文件坐标

+ 16
- 1
tuoheng-service/tuoheng-admin/src/test/java/com/tuoheng/admin/service/DspCallbackServiceTest.java Wyświetl plik

@@ -9,9 +9,11 @@ import com.tuoheng.admin.mapper.SectionMapper;
import com.tuoheng.admin.request.dept.AddDeptRequest;
import com.tuoheng.admin.request.dept.EditDeptRequest;
import com.tuoheng.admin.request.third.DspCallbackRequest;
import com.tuoheng.admin.request.third.QuestionFile;
import com.tuoheng.admin.service.dept.IDeptService;
import com.tuoheng.admin.service.dept.query.QueryListTreeService;
import com.tuoheng.admin.service.third.dsp.IDspCallbackService;
import com.tuoheng.common.core.utils.DateUtils;
import com.tuoheng.common.core.utils.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
@@ -21,6 +23,7 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
@@ -35,10 +38,22 @@ public class DspCallbackServiceTest {

@Test
public void testGetOneById() {
String requestId = "dc96139337854ae78da7f20e144b3a9f";
String requestId = "369567d311de473886c40a5c85305493";
DspCallbackRequest dspCallbackRequest = new DspCallbackRequest();
dspCallbackRequest.setAnalyseStatus(2);
dspCallbackRequest.setType(1);

List<QuestionFile> questionFiles = new ArrayList<>();
QuestionFile questionFile = new QuestionFile();
questionFile.setFileCode("PVR2024010815484594512");
questionFile.setFileName("2024-01-08-15-48-45_frame-52-332_type_20240108154845591880-1-003-1_AI.jpg");
questionFile.setFileOriginalUrl("https://image.t-aaron.com/369567d311de473886c40a5c85305493/2024-01-08-15-48-45_frame-52-332_type_20240108154845581518-1-0-0_OR.jpg");
questionFile.setFileMarkerUrl("https://image.t-aaron.com/369567d311de473886c40a5c85305493/2024-01-08-15-48-45_frame-52-332_type_20240108154845591880-1-003-1_AI.jpg");
questionFile.setAnalyseTime(DateUtils.dateTime(DateUtils.YYYY_MM_DD_HH_MM_SS, "2024-01-08 15:48:45"));
questionFile.setQuestionName("车辆");
questionFile.setQuestionCode("003008");
questionFiles.add(questionFile);
dspCallbackRequest.setQuestionFiles(questionFiles);
dspCallbackService.saveCallbackData(requestId, dspCallbackRequest);
}


Ładowanie…
Anuluj
Zapisz