Commit a4d0c29c by ddx

增加日志

parent b4080090
...@@ -12,8 +12,8 @@ import java.util.Map; ...@@ -12,8 +12,8 @@ import java.util.Map;
public class FileManageTest { public class FileManageTest {
String accessKeyID = "bwgf-limit"; String accessKeyID = "bwgf-limit";
static String accessKeySecret = "bw@2u9%5Ts#2"; static String accessKeySecret = "bw@2u9%5Ts#2";
static String host = "http://127.0.0.1:8767"; // static String host = "http://127.0.0.1:8767";
// static String host = "https://api.taxservices.cn"; static String host = "https://api.taxservices.cn";
// static String host = "http://60.205.138.54:8767"; // static String host = "http://60.205.138.54:8767";
@Test @Test
public void testHandApplyFile() throws Exception{ public void testHandApplyFile() throws Exception{
...@@ -82,11 +82,12 @@ public class FileManageTest { ...@@ -82,11 +82,12 @@ public class FileManageTest {
String url = host + "/invoicefile/batchTaxManage"; String url = host + "/invoicefile/batchTaxManage";
Map param = new HashMap<>(); Map param = new HashMap<>();
param.put("userCode","edaxiang"); param.put("userCode","echangcheng");
param.put("errorCode","4042"); param.put("errorCode","4042");
System.out.println(url); System.out.println(url);
String ret = HttpHelper.postWithJson(url,JSON.toJSONString(param)); System.out.println(JSON.toJSONString(param));
System.out.println(ret); // ResponseContent ret = HttpHelper.postJsonEntity(url,JSON.toJSONString(param));
// System.out.println(ret.getContent());
} }
public static String getSign(String data){ public static String getSign(String data){
......
...@@ -279,7 +279,7 @@ public class TkTokenServiceImpl implements TkTokenService { ...@@ -279,7 +279,7 @@ public class TkTokenServiceImpl implements TkTokenService {
} else { } else {
updFlag = true; updFlag = true;
} }
if (updFlag && !tkToken.getFunctionNo().equals("01")) { if (updFlag && !functionNo.equals("01")) {
TkToken updToken = queryToken(taxno, zoneCode, userCode); TkToken updToken = queryToken(taxno, zoneCode, userCode);
if(null!=updToken) { if(null!=updToken) {
tkToken.setId(updToken.getId()); tkToken.setId(updToken.getId());
...@@ -306,7 +306,7 @@ public class TkTokenServiceImpl implements TkTokenService { ...@@ -306,7 +306,7 @@ public class TkTokenServiceImpl implements TkTokenService {
result.setData(json); result.setData(json);
} }
} else { } else {
if(tkToken.getFunctionNo().equals("01")) { if(functionNo.equals("01")) {
JSONObject json = new JSONObject(); JSONObject json = new JSONObject();
json.put("cookie", token); json.put("cookie", token);
json.put("authCode", tkToken.getAuthCode()); json.put("authCode", tkToken.getAuthCode());
...@@ -321,7 +321,7 @@ public class TkTokenServiceImpl implements TkTokenService { ...@@ -321,7 +321,7 @@ public class TkTokenServiceImpl implements TkTokenService {
} }
} }
} }
logger.info(uuId + " getRealCookie is " + result.toString()); logger.info(uuId + " getRealCookie function is " + functionNo + ",result is " + result.toString());
tkRealTokenLogService.saveRealTokenLog(uuId, tkToken, "0"); tkRealTokenLogService.saveRealTokenLog(uuId, tkToken, "0");
return result; return result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment