url.dart 521 B

123456789101112131415161718192021
  1. import 'package:bbyyy/my_tools/my_cookie.dart';
  2. class MyUrl {
  3. static String checkLogin = '/aa/checkLogin';
  4. static String login = '/aa/login';
  5. static String registered = '/reg/user';
  6. static String filePath = MyCookie().getServer() + '/file/download?path=';
  7. }
  8. String imgURL(String path) {
  9. return MyUrl.filePath +
  10. path +
  11. '&__token__=12345678&__user__=123&preview=true';
  12. }
  13. String apkURL(String path) {
  14. return MyUrl.filePath +
  15. path +
  16. '&__token__=12345678&__user__=123&preview=false';
  17. }