123456789101112131415161718192021222324 |
-
-
- import 'package:dio/dio.dart';
- import 'package:farmer_client/utils/Request.dart';
- import 'package:fluttertoast/fluttertoast.dart';
-
-
- Future getSMSCaptch(String phone) async {
- return request('/sms-captcha', options: Options(method: 'POST'), queryParameters: { 'phone': phone })
- .then((value) {
- Fluttertoast.showToast(
- msg: '验证码发送成功!'
- );
- }).catchError((error) {
-
- Fluttertoast.showToast(
- msg: error.error['message']
- );
- });
- }
-
- Future getCurrent() async {
- return request('/person/current');
- }
|