api.dart 451 B

123456789101112131415161718
  1. import 'package:flutter/material.dart';
  2. String domain='http://49.4.66.233:8201/';
  3. // String domain='http://192.168.50.226:8080/'; //本地ip
  4. String debugID='84671';//测试id
  5. bool isDebug=false;//是否测试(未链接登录需要该值获取测试id)
  6. bool checkPhone (phone){
  7. bool result = false;
  8. RegExp exp=new RegExp(r"^1[3|4|5|8|7|6|9][0-9]\d{8}$");
  9. if (exp.hasMatch(phone)) {
  10. result = true;
  11. }
  12. return result;
  13. }