Commit a4d0c29c by ddx

增加日志

parent b4080090
......@@ -12,8 +12,8 @@ import java.util.Map;
public class FileManageTest {
String accessKeyID = "bwgf-limit";
static String accessKeySecret = "bw@2u9%5Ts#2";
static String host = "http://127.0.0.1:8767";
// static String host = "https://api.taxservices.cn";
// static String host = "http://127.0.0.1:8767";
static String host = "https://api.taxservices.cn";
// static String host = "http://60.205.138.54:8767";
@Test
public void testHandApplyFile() throws Exception{
......@@ -82,11 +82,12 @@ public class FileManageTest {
String url = host + "/invoicefile/batchTaxManage";
Map param = new HashMap<>();
param.put("userCode","edaxiang");
param.put("userCode","echangcheng");
param.put("errorCode","4042");
System.out.println(url);
String ret = HttpHelper.postWithJson(url,JSON.toJSONString(param));
System.out.println(ret);
System.out.println(JSON.toJSONString(param));
// ResponseContent ret = HttpHelper.postJsonEntity(url,JSON.toJSONString(param));
// System.out.println(ret.getContent());
}
public static String getSign(String data){
......
......@@ -279,7 +279,7 @@ public class TkTokenServiceImpl implements TkTokenService {
} else {
updFlag = true;
}
if (updFlag && !tkToken.getFunctionNo().equals("01")) {
if (updFlag && !functionNo.equals("01")) {
TkToken updToken = queryToken(taxno, zoneCode, userCode);
if(null!=updToken) {
tkToken.setId(updToken.getId());
......@@ -306,7 +306,7 @@ public class TkTokenServiceImpl implements TkTokenService {
result.setData(json);
}
} else {
if(tkToken.getFunctionNo().equals("01")) {
if(functionNo.equals("01")) {
JSONObject json = new JSONObject();
json.put("cookie", token);
json.put("authCode", tkToken.getAuthCode());
......@@ -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");
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