kangarooDataCenterV3/common/src/test/java/Test.java

26 lines
908 B
Java

import cn.hutool.core.util.HexUtil;
import com.hzya.frame.ttxofs.OfsHexUtil;
/**
* @Content
* @Author 👻👻👻👻👻👻👻👻👻👻 gjh
* @Date 2023-07-18 13:57
* @Version 1.0
*/
public class Test {
public static void main(String[] args) {
OfsHexUtil h = new OfsHexUtil();
String data = "{\n" +
" \"created_start\": \"2024-03-27 12:03:30\",\n" +
" \"created_end\": \"2024-03-27 12:04:00\",\n" +
" \"clientCode\": \"LETS\",\n" +
" \"status\": 900,\n" +
" \"internalInstructionType\": \"SALES\",\n" +
" \"pageNo\": 1,\n" +
" \"pageSize\": 50\n" +
"}";
String json = h.sign("ofs.shipment.search", data, "json", "1023142858", "1.0", "382e4a2584027a36ac9431103", "123456789");
System.out.println(json);
}
}