|
@@ -35,6 +35,7 @@ import io.flutter.plugin.common.MethodChannel;
|
|
|
import io.flutter.plugin.common.MethodChannel.MethodCallHandler;
|
|
|
import io.flutter.plugin.common.MethodChannel.Result;
|
|
|
import io.flutter.plugin.common.PluginRegistry.Registrar;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
|
|
|
/** IdreadPlugin */
|
|
|
public class IdreadPlugin implements FlutterPlugin, MethodCallHandler {
|
|
@@ -52,7 +53,8 @@ public class IdreadPlugin implements FlutterPlugin, MethodCallHandler {
|
|
|
private boolean apiInit = false;
|
|
|
private boolean apiAuto = false;
|
|
|
|
|
|
- SimpleDateFormat df = new SimpleDateFormat("yyyy年MM月dd日");// 设置日期格式
|
|
|
+ SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");// 设置日期格式
|
|
|
+// SimpleDateFormat df = new SimpleDateFormat("yyyy年MM月dd日");// 设置日期格式
|
|
|
|
|
|
|
|
|
@SuppressLint("HandlerLeak")
|