|
|
@@ -9,6 +9,7 @@ import com.template.model.pojo.UnitTimeHelpModel;
|
|
|
import com.template.model.vo.ClassSettingDateVo;
|
|
|
import org.apache.commons.lang3.time.DateFormatUtils;
|
|
|
import org.apache.commons.lang3.time.DateUtils;
|
|
|
+import org.aspectj.weaver.ast.Var;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
@@ -800,12 +801,15 @@ public class TimeExchange {
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
- String result = "{\"errcode\":0,\"errmsg\":\"ok\",\"phone_info\":{\"phoneNumber\":\"18320846714\",\"purePhoneNumber\":\"18320846714\",\"countryCode\":\"86\",\"watermark\":{\"timestamp\":1716975315,\"appid\":\"wx2fc3f45732fae5d3\"}}}";
|
|
|
- JSONObject jsonObject = JSONObject.parseObject(result);
|
|
|
- String errcode = String.valueOf(jsonObject.get("phone_info"));
|
|
|
- JSONObject jsonErroObject = JSONObject.parseObject(errcode);
|
|
|
- String purePhoneNumber = String.valueOf(jsonErroObject.get("purePhoneNumber"));
|
|
|
- System.out.println(purePhoneNumber);
|
|
|
+// String result = "{\"errcode\":0,\"errmsg\":\"ok\",\"phone_info\":{\"phoneNumber\":\"18320846714\",\"purePhoneNumber\":\"18320846714\",\"countryCode\":\"86\",\"watermark\":{\"timestamp\":1716975315,\"appid\":\"wx2fc3f45732fae5d3\"}}}";
|
|
|
+// JSONObject jsonObject = JSONObject.parseObject(result);
|
|
|
+// String errcode = String.valueOf(jsonObject.get("phone_info"));
|
|
|
+// JSONObject jsonErroObject = JSONObject.parseObject(errcode);
|
|
|
+// String purePhoneNumber = String.valueOf(jsonErroObject.get("purePhoneNumber"));
|
|
|
+// System.out.println(purePhoneNumber);
|
|
|
+
|
|
|
+ String date = getDate();
|
|
|
+ System.out.println("date = " + date);
|
|
|
}
|
|
|
|
|
|
|