Commit de4098a8b26741dde264727c1afa467017f6d8a6
1 parent
bb37431e
Exists in
master
feat:增加金润对接钉钉审批接口
Showing
1 changed file
with
2 additions
and
4 deletions
Show diff stats
jinrun/audit/审批接口.md
| @@ -161,7 +161,6 @@ public static String aesEncrypt(String source, String secret) { | @@ -161,7 +161,6 @@ public static String aesEncrypt(String source, String secret) { | ||
| 161 | public static void main(String[] args) { | 161 | public static void main(String[] args) { |
| 162 | String appKey = "bd95591ce63f4a78a54658c2d8ad5ff6"; | 162 | String appKey = "bd95591ce63f4a78a54658c2d8ad5ff6"; |
| 163 | String appSecret = "734a18117f614e60859efb8eea27c680"; | 163 | String appSecret = "734a18117f614e60859efb8eea27c680"; |
| 164 | - String aesSecret = "734a18117f614e60859efb8eea27c680"; | ||
| 165 | ZYClient ZYClient = new ZYClient(appKey, appSecret); | 164 | ZYClient ZYClient = new ZYClient(appKey, appSecret); |
| 166 | String data = "{\n" + | 165 | String data = "{\n" + |
| 167 | " \"code\": \"JR202510200000003\",\n" + | 166 | " \"code\": \"JR202510200000003\",\n" + |
| @@ -191,7 +190,7 @@ public static void main(String[] args) { | @@ -191,7 +190,7 @@ public static void main(String[] args) { | ||
| 191 | " }\n" + | 190 | " }\n" + |
| 192 | " ]\n" + | 191 | " ]\n" + |
| 193 | "}"; | 192 | "}"; |
| 194 | - HttpResponseData httpResponseData = ZYClient.doPost(Constants.TEST_HOST + "/tms-service-api/audit/send", AesUtils.aesEncrypt(data, aesSecret)); | 193 | + HttpResponseData httpResponseData = ZYClient.doPost(Constants.TEST_HOST + "/tms-service-api/audit/send", AesUtils.aesEncrypt(data, appSecret)); |
| 195 | } | 194 | } |
| 196 | ``` | 195 | ``` |
| 197 | 196 | ||
| @@ -283,7 +282,6 @@ public static void main(String[] args) { | @@ -283,7 +282,6 @@ public static void main(String[] args) { | ||
| 283 | public static void main(String[] args) { | 282 | public static void main(String[] args) { |
| 284 | String appKey = "bd95591ce63f4a78a54658c2d8ad5ff6"; | 283 | String appKey = "bd95591ce63f4a78a54658c2d8ad5ff6"; |
| 285 | String appSecret = "734a18117f614e60859efb8eea27c680"; | 284 | String appSecret = "734a18117f614e60859efb8eea27c680"; |
| 286 | - String aesSecret = "734a18117f614e60859efb8eea27c680"; | ||
| 287 | ZYClient ZYClient = new ZYClient(appKey, appSecret); | 285 | ZYClient ZYClient = new ZYClient(appKey, appSecret); |
| 288 | String data = "{\n" + | 286 | String data = "{\n" + |
| 289 | " \"code\": \"JR202510200000002\",\n" + | 287 | " \"code\": \"JR202510200000002\",\n" + |
| @@ -292,7 +290,7 @@ public static void main(String[] args) { | @@ -292,7 +290,7 @@ public static void main(String[] args) { | ||
| 292 | " \"remark\": \"付款金额错误, 撤销重新提交\",\n" + | 290 | " \"remark\": \"付款金额错误, 撤销重新提交\",\n" + |
| 293 | " \"username\": \"001073\"\n" + | 291 | " \"username\": \"001073\"\n" + |
| 294 | "}"; | 292 | "}"; |
| 295 | - HttpResponseData httpResponseData = ZYClient.doPost(Constants.TEST_HOST + "/tms-service-api/audit/cancel", AesUtils.aesEncrypt(data, aesSecret)); | 293 | + HttpResponseData httpResponseData = ZYClient.doPost(Constants.TEST_HOST + "/tms-service-api/audit/cancel", AesUtils.aesEncrypt(data, appSecret)); |
| 296 | } | 294 | } |
| 297 | ``` | 295 | ``` |
| 298 | 296 |