getLastPhotoUpdateTime method

Future<String> getLastPhotoUpdateTime()

获取最后一次更新本地DB相册时间 成功:字符串类型 时间 失败:报错信息

Implementation

Future<String> getLastPhotoUpdateTime () async {
  try {
    await judgeTableCreate();
    var config = await RunSelect('select keyValue from Config where ablumKey = "LAST_ALBUM_CREATE"');
    return config[0].values.toList()[0].toString();
  } catch (e) {
    return e.toString();
  }
}