| 123456789101112131415161718192021222324 |
- import 'package:flutter/material.dart';
- import 'package:intl/intl.dart';
- String domain='http://49.4.66.233:8201/';
- // String domain='http://192.168.50.121:8080/'; //本地ip
- String debugID='84671';//测试id
- bool isDebug=false;//是否测试(未链接登录需要该值获取测试id)
- bool checkPhone (phone){
- bool result = false;
- RegExp exp=new RegExp(r"^1[3|4|5|8|7|6|9][0-9]\d{8}$");
- if (exp.hasMatch(phone)) {
- result = true;
- }
- return result;
- }
- String readTimestamp(int timestamp,String _timeType) {
-
- return DateFormat(_timeType).format(DateTime.fromMillisecondsSinceEpoch(timestamp));
- }
|