his医保
This commit is contained in:
@@ -13,7 +13,8 @@ echo 1、关闭端口进程:%PROT%
|
||||
for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%PROT%"') do taskkill /pid %%m -t -f
|
||||
|
||||
echo 2、启动本地程序
|
||||
start %CHSPATH%/javaw.exe -Dfile.encoding=utf-8 -Djava.library.path="%CHSPATH%;%CHSPATH%/CHSInterfaceYn" -Dlog.path=%~dp0 -jar %~dp0\%NAME%.jar --server.port=%PROT%
|
||||
cd /d %CHSPATH%/
|
||||
start javaw.exe -Dfile.encoding=utf-8 -Djava.library.path="%CHSPATH%;%CHSPATH%/CHSInterfaceYn" -Dlog.path=%~dp0 -jar %~dp0\%NAME%.jar --server.port=%PROT%
|
||||
|
||||
:: 延迟5秒
|
||||
timeout /NOBREAK /T 5 >nul
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.dpkj.modules.chs.service.impl;
|
||||
|
||||
import cn.hutool.core.lang.Console;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.alibaba.fastjson.TypeReference;
|
||||
import com.dpkj.modules.chs.padchs.response.ChsQrcodeResponse;
|
||||
import com.dpkj.modules.chs.padchs.response.ChsResponseCommon;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
class AliChsPayServiceImplTest {
|
||||
|
||||
@Test
|
||||
void getQrcodeData() {
|
||||
|
||||
String response = "{\n" +
|
||||
"\t\"data\": {\n" +
|
||||
"\t\t\"extra\": \"\",\n" +
|
||||
"\t\t\"idNo\": \"533222199909090123\",\n" +
|
||||
"\t\t\"idType\": \"01\",\n" +
|
||||
"\t\t\"ecToken\": \"ADBHJRS5I01E0F3438C00000B959FA88\",\n" +
|
||||
"\t\t\"insuOrg\": \"430000\",\n" +
|
||||
"\t\t\"userName\": \"张三\",\n" +
|
||||
"\t\t\"ecIndexNo\": \"\",\n" +
|
||||
"\t\t\"gender\": \"\",\n" +
|
||||
"\t\t\"birthday\": \"\",\n" +
|
||||
"\t\t\"nationality\": \"\",\n" +
|
||||
"\t\t\"email\": \"\"\n" +
|
||||
"\t},\n" +
|
||||
"\t\"code\": 0,\n" +
|
||||
"\t\"message\": \"处理成功\"\n" +
|
||||
"}";
|
||||
|
||||
ChsResponseCommon<ChsQrcodeResponse> responseCommon = JSONObject.parseObject(response, new TypeReference<ChsResponseCommon<ChsQrcodeResponse>>() {
|
||||
});
|
||||
ChsQrcodeResponse result = responseCommon.getData();
|
||||
|
||||
Console.log(result.toString());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user