|
@@ -7,6 +7,7 @@ import com.ruoyi.common.core.utils.DateUtils;
|
|
|
import com.ruoyi.common.core.utils.StringUtils;
|
|
|
import com.ruoyi.common.core.utils.uuid.IdUtils;
|
|
|
import com.ruoyi.lnst.domain.InLnstLrxx;
|
|
|
+import com.ruoyi.system.sm4.SM4Utils;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.bouncycastle.crypto.digests.SM3Digest;
|
|
|
import org.bouncycastle.util.encoders.Hex;
|
|
@@ -35,6 +36,13 @@ public class YlServer {
|
|
|
protected final Logger logger = LoggerFactory.getLogger(YlServer.class);
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
+
|
|
|
+ JSONObject object = new JSONObject();
|
|
|
+ object.put("sysid", "68cd661250796472");
|
|
|
+ SM4Utils sm4 = new SM4Utils();
|
|
|
+ sm4.secretKey = "d8f37edaf81f4373";
|
|
|
+ String jsonStr = sm4.encryptData_ECB(object.toJSONString());
|
|
|
+ System.out.println(jsonStr);
|
|
|
// 禁用/启用
|
|
|
// TreeMap<String, Object> lr = new TreeMap<>();
|
|
|
// lr.put("memberCode", "1100302290");
|
|
@@ -60,12 +68,12 @@ public class YlServer {
|
|
|
// }
|
|
|
// System.out.println( YlServer.httpsRequest(YlServer.Map2JSONStr(map)));
|
|
|
|
|
|
- TreeMap<String, Object> store = new TreeMap<>();
|
|
|
- store.put("storeCode", "0003");
|
|
|
- store.put("state", "1");
|
|
|
- TreeMap<String, Object> map = YlServer.publicSupport(ResourceUtil.getConfigByName("yl.mdzt"), "10002253",
|
|
|
- null, store);
|
|
|
- System.out.println(YlServer.httpsRequest(YlServer.Map2JSONStr(map)));
|
|
|
+// TreeMap<String, Object> store = new TreeMap<>();
|
|
|
+// store.put("storeCode", "0003");
|
|
|
+// store.put("state", "1");
|
|
|
+// TreeMap<String, Object> map = YlServer.publicSupport(ResourceUtil.getConfigByName("yl.mdzt"), "10002253",
|
|
|
+// null, store);
|
|
|
+// System.out.println(YlServer.httpsRequest(YlServer.Map2JSONStr(map)));
|
|
|
|
|
|
// TreeMap<String, Object> lr = new TreeMap<>();
|
|
|
// lr.put("storeCode", "");
|