import 'package:bbyyy/my_tools/my_apis.dart'; import 'package:bbyyy/my_tools/my_cookie.dart'; class MyUrl { static String checkLogin = '/aa/checkLogin'; static String login = '/aa/login'; static String registered = '/reg/user'; static String filePath = 'https://${MyCookie().server}:4001' + '${MyApis.getApi('download')}?path='; } String imgURL(String path) { return MyUrl.filePath + path + '&token=12345678&user=123&preview=true'; } String apkURL(String path) { return MyUrl.filePath + path + '&token=12345678&user=123&preview=false'; }