2024-08-01 17:22:26 +08:00
|
|
|
import cn.hutool.core.util.HexUtil;
|
|
|
|
import com.hzya.frame.ttxofs.OfsHexUtil;
|
|
|
|
|
2024-03-26 13:34:31 +08:00
|
|
|
/**
|
|
|
|
* @Content
|
|
|
|
* @Author 👻👻👻👻👻👻👻👻👻👻 gjh
|
|
|
|
* @Date 2023-07-18 13:57
|
|
|
|
* @Version 1.0
|
|
|
|
*/
|
|
|
|
public class Test {
|
2024-08-01 17:22:26 +08:00
|
|
|
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);
|
|
|
|
}
|
2024-03-26 13:34:31 +08:00
|
|
|
}
|