url.dart 577 B

12345678910111213141516171819202122
  1. import 'package:bbyyy/my_tools/my_apis.dart';
  2. import 'package:bbyyy/my_tools/my_cookie.dart';
  3. class MyUrl {
  4. static String checkLogin = '/aa/checkLogin';
  5. static String login = '/aa/login';
  6. static String registered = '/reg/user';
  7. static String filePath = 'http://${MyCookie().server}:3001' + '${MyApis.getApi('download')}?path=';
  8. }
  9. String imgURL(String path) {
  10. return MyUrl.filePath +
  11. path +
  12. '&token=12345678&user=123&preview=true';
  13. }
  14. String apkURL(String path) {
  15. return MyUrl.filePath +
  16. path +
  17. '&token=12345678&user=123&preview=false';
  18. }