add comment

This commit is contained in:
niuhuan 2021-10-26 19:04:23 +08:00
parent 7debe9269b
commit ba1e8d56d3
18 changed files with 15 additions and 17 deletions

View File

@ -613,8 +613,6 @@ func FlatInvoke(method string, params string) (string, error) {
return downloadGame(params) return downloadGame(params)
case "convertImageToJPEG100": case "convertImageToJPEG100":
return "", convertImageToJPEG100(params) return "", convertImageToJPEG100(params)
case "specialDownloadTitle":
return specialDownloadTitle(params)
case "loadDownloadAndExportPath": case "loadDownloadAndExportPath":
return loadDownloadAndExportPath(), nil return loadDownloadAndExportPath(), nil
case "saveDownloadAndExportPath": case "saveDownloadAndExportPath":

View File

@ -1,12 +0,0 @@
package controller
import "pikapi/main/database/comic_center"
// 根据comicId获得标题但是必须是下载的内容(暂未使用)
func specialDownloadTitle(comicId string) (string, error) {
info, err := comic_center.DownloadInfo(comicId)
if err != nil {
return "", err
}
return info.Title, nil
}

View File

@ -1,3 +1,5 @@
///
import 'dart:convert'; import 'dart:convert';
import 'dart:io'; import 'dart:io';

View File

@ -1,3 +1,4 @@
///
import 'dart:io'; import 'dart:io';

View File

@ -1,3 +1,5 @@
///
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import '../Common.dart'; import '../Common.dart';

View File

@ -1,4 +1,3 @@
import 'package:event/event.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_search_bar/flutter_search_bar.dart'; import 'package:flutter_search_bar/flutter_search_bar.dart';
import 'package:pikapi/basic/Common.dart'; import 'package:pikapi/basic/Common.dart';

View File

@ -8,7 +8,6 @@ import 'package:pikapi/basic/Common.dart';
import 'package:pikapi/basic/Cross.dart'; import 'package:pikapi/basic/Cross.dart';
import 'package:pikapi/basic/Entities.dart'; import 'package:pikapi/basic/Entities.dart';
import 'package:pikapi/basic/Method.dart'; import 'package:pikapi/basic/Method.dart';
import 'package:pikapi/basic/config/Platform.dart';
import 'package:pikapi/screens/DownloadExportToSocketScreen.dart'; import 'package:pikapi/screens/DownloadExportToSocketScreen.dart';
import 'components/ContentError.dart'; import 'components/ContentError.dart';

View File

@ -9,6 +9,7 @@ import 'components/ContentError.dart';
import 'components/ContentLoading.dart'; import 'components/ContentLoading.dart';
import 'components/DownloadInfoCard.dart'; import 'components/DownloadInfoCard.dart';
//
class DownloadExportToSocketScreen extends StatefulWidget { class DownloadExportToSocketScreen extends StatefulWidget {
final DownloadComic task; final DownloadComic task;
final String comicId; final String comicId;

View File

@ -1,6 +1,5 @@
import 'dart:async'; import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'dart:io';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:pikapi/basic/Channels.dart'; import 'package:pikapi/basic/Channels.dart';

View File

@ -3,6 +3,7 @@ import 'package:photo_view/photo_view.dart';
import 'package:pikapi/basic/Cross.dart'; import 'package:pikapi/basic/Cross.dart';
import 'package:pikapi/screens/components/Images.dart'; import 'package:pikapi/screens/components/Images.dart';
//
class FilePhotoViewScreen extends StatelessWidget { class FilePhotoViewScreen extends StatelessWidget {
final String filePath; final String filePath;

View File

@ -6,6 +6,7 @@ import 'package:pikapi/screens/components/ItemBuilder.dart';
import 'components/GameTitleCard.dart'; import 'components/GameTitleCard.dart';
//
class GameDownloadScreen extends StatefulWidget { class GameDownloadScreen extends StatefulWidget {
final GameInfo info; final GameInfo info;

View File

@ -9,6 +9,7 @@ import 'package:pikapi/screens/components/Images.dart';
import 'GameDownloadScreen.dart'; import 'GameDownloadScreen.dart';
import 'components/GameTitleCard.dart'; import 'components/GameTitleCard.dart';
//
class GameInfoScreen extends StatefulWidget { class GameInfoScreen extends StatefulWidget {
final String gameId; final String gameId;

View File

@ -7,6 +7,7 @@ import 'package:pikapi/screens/components/ContentBuilder.dart';
import 'GameInfoScreen.dart'; import 'GameInfoScreen.dart';
import 'components/Images.dart'; import 'components/Images.dart';
//
class GamesScreen extends StatefulWidget { class GamesScreen extends StatefulWidget {
@override @override
State<StatefulWidget> createState() => _GamesScreenState(); State<StatefulWidget> createState() => _GamesScreenState();

View File

@ -6,6 +6,7 @@ import 'package:pikapi/basic/Method.dart';
import 'package:pikapi/screens/components/ContentBuilder.dart'; import 'package:pikapi/screens/components/ContentBuilder.dart';
import 'package:pikapi/screens/components/ContentLoading.dart'; import 'package:pikapi/screens/components/ContentLoading.dart';
//
class MigrateScreen extends StatefulWidget { class MigrateScreen extends StatefulWidget {
@override @override
State<StatefulWidget> createState() => _MigrateScreenState(); State<StatefulWidget> createState() => _MigrateScreenState();

View File

@ -6,6 +6,7 @@ import 'package:pikapi/basic/config/ShadowCategories.dart';
import 'components/ComicListBuilder.dart'; import 'components/ComicListBuilder.dart';
//
class RandomComicsScreen extends StatefulWidget { class RandomComicsScreen extends StatefulWidget {
@override @override
State<StatefulWidget> createState() => _RandomComicsScreenState(); State<StatefulWidget> createState() => _RandomComicsScreenState();

View File

@ -6,6 +6,7 @@ import 'package:pikapi/basic/config/ShadowCategories.dart';
import 'components/ComicListBuilder.dart'; import 'components/ComicListBuilder.dart';
//
class RankingsScreen extends StatelessWidget { class RankingsScreen extends StatelessWidget {
@override @override

View File

@ -6,6 +6,7 @@ import 'package:pikapi/screens/components/NetworkSetting.dart';
import 'components/ContentLoading.dart'; import 'components/ContentLoading.dart';
///
class RegisterScreen extends StatefulWidget { class RegisterScreen extends StatefulWidget {
@override @override
State<StatefulWidget> createState() => _RegisterScreenState(); State<StatefulWidget> createState() => _RegisterScreenState();

View File

@ -8,6 +8,7 @@ import 'package:pikapi/basic/Method.dart';
import '../basic/Entities.dart'; import '../basic/Entities.dart';
import 'components/ComicPager.dart'; import 'components/ComicPager.dart';
//
class SearchScreen extends StatefulWidget { class SearchScreen extends StatefulWidget {
final String keyword; final String keyword;
final String? category; final String? category;