记得上下班打卡 | git大法好,push需谨慎

Commit 27e678c5 authored by jiangxiulong's avatar jiangxiulong

ShunfengSignUtils

parent 11cdfc49
...@@ -93,7 +93,7 @@ public class ShunfengSignUtils { ...@@ -93,7 +93,7 @@ public class ShunfengSignUtils {
* @param hbody 请求body * @param hbody 请求body
* @return * @return
*/ */
/*public String generateSignatureAndRequest(HashMap<String, Object> hbody, String url) { public String generateSignatureAndRequest(HashMap<String, Object> hbody, String url) {
long currentTimeMillis = System.currentTimeMillis(); // 时间戳 long currentTimeMillis = System.currentTimeMillis(); // 时间戳
String timestamp = currentTimeMillis + ""; String timestamp = currentTimeMillis + "";
hbody.put("companyId", APP_ID); hbody.put("companyId", APP_ID);
...@@ -127,12 +127,6 @@ public class ShunfengSignUtils { ...@@ -127,12 +127,6 @@ public class ShunfengSignUtils {
return EntityUtils.toString(entity, "utf-8"); return EntityUtils.toString(entity, "utf-8");
} }
} catch (Exception e) { } catch (Exception e) {
KylinOrderExpress kylinOrderExpresstest = new KylinOrderExpress();
kylinOrderExpresstest.setRemark(e.getMessage());
kylinOrderExpressMapper.update(
kylinOrderExpresstest
, new UpdateWrapper<KylinOrderExpress>().in("order_express_id", "4277059374923776311218")
);
System.out.println("发送请求失败"); System.out.println("发送请求失败");
e.printStackTrace(); e.printStackTrace();
return e.getMessage(); return e.getMessage();
...@@ -141,12 +135,6 @@ public class ShunfengSignUtils { ...@@ -141,12 +135,6 @@ public class ShunfengSignUtils {
try { try {
client.close(); client.close();
} catch (IOException e) { } catch (IOException e) {
KylinOrderExpress kylinOrderExpresstest = new KylinOrderExpress();
kylinOrderExpresstest.setRemark(e.getMessage());
kylinOrderExpressMapper.update(
kylinOrderExpresstest
, new UpdateWrapper<KylinOrderExpress>().in("order_express_id", "4277155059580928598770")
);
e.printStackTrace(); e.printStackTrace();
} }
} }
...@@ -154,18 +142,12 @@ public class ShunfengSignUtils { ...@@ -154,18 +142,12 @@ public class ShunfengSignUtils {
try { try {
response.close(); response.close();
} catch (IOException e) { } catch (IOException e) {
KylinOrderExpress kylinOrderExpresstest = new KylinOrderExpress();
kylinOrderExpresstest.setRemark(e.getMessage());
kylinOrderExpressMapper.update(
kylinOrderExpresstest
, new UpdateWrapper<KylinOrderExpress>().in("order_express_id", "4283919842787328538414")
);
e.printStackTrace(); e.printStackTrace();
} }
} }
} }
return null; return null;
}*/ }
/** /**
* 生成签名 * 生成签名
......
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