|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
+package com.shuhaiwifi.task;
|
|
|
2
|
+
|
|
1
|
3
|
import cn.hutool.core.codec.Base64;
|
|
2
|
4
|
import cn.hutool.crypto.Mode;
|
|
3
|
5
|
import cn.hutool.crypto.Padding;
|
|
4
|
6
|
import cn.hutool.crypto.symmetric.AES;
|
|
5
|
7
|
import com.alibaba.fastjson.JSONObject;
|
|
6
|
|
-import com.shuhaiwifi.task.RCPService;
|
|
7
|
8
|
import com.shuhaiwifi.task.util.Utils;
|
|
|
9
|
+import org.apache.commons.logging.Log;
|
|
|
10
|
+import org.apache.commons.logging.LogFactory;
|
|
8
|
11
|
|
|
9
|
12
|
import javax.crypto.spec.IvParameterSpec;
|
|
10
|
13
|
import javax.crypto.spec.SecretKeySpec;
|
|
11
|
|
-import java.io.IOException;
|
|
12
|
14
|
import java.nio.charset.StandardCharsets;
|
|
13
|
|
-import java.util.ArrayList;
|
|
14
|
|
-import java.util.HashMap;
|
|
15
|
15
|
import java.util.List;
|
|
16
|
16
|
import java.util.Map;
|
|
17
|
|
-import java.util.stream.Collectors;
|
|
18
|
17
|
|
|
19
|
|
-public class A {
|
|
|
18
|
+public class ChangeSimGrp {
|
|
|
19
|
+
|
|
|
20
|
+ private final static Log logger = LogFactory.getLog(ChangeSimGrp.class);
|
|
20
|
21
|
|
|
21
|
22
|
static String appId="6vGGHwa43CHshDBfDZcuG3vX43weRCwj";
|
|
22
|
23
|
static String appSecret="9XPzT9OUvmu2iSCq5gURllS5TEjt2WbP";
|
|
|
@@ -48,7 +49,7 @@ public class A {
|
|
48
|
49
|
JSONObject data = resJson.getJSONObject("data");
|
|
49
|
50
|
String status=data.getString("status");
|
|
50
|
51
|
if ("1".equals(status)){
|
|
51
|
|
- System.out.println(iccid+"=====>"+status);
|
|
|
52
|
+ logger.info(iccid+"=====>"+status);
|
|
52
|
53
|
RCPService.getSimpService().execSql("update sim set scgrpid=1 where iccid='"+iccid+"'");
|
|
53
|
54
|
}
|
|
54
|
55
|
}
|