admin
2022-05-07 4c7cde7ae5ed57335405459e47de4bbd2726c4ba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import 'dart:convert';
 
import 'package:flutter/cupertino.dart';
import 'package:makemoney/utils/share_preference.dart';
import '../../api/config_api.dart';
import '../api/http.dart';
import 'package:shared_preferences/shared_preferences.dart';
 
class ConfigUtil {
  static Future<String?> getConfig(BuildContext context, String key) async {
    String? value = await dataMethodChannel.invokeMethod("getConfig", key);
    return value;
  }
}
 
class ConfigKey {
  //客服
  static const String kefu = "kefu";
 
  //教程
  static const String course = "course";
 
  //注销
  static const String unRegister = "unRegister";
 
  //隐私投诉
  static const String privacyComplain = "privacyComplain";
 
  //会员链接
  static const String vipLink = "vipLink";
 
  //三方SDK链接
  static const String sdkList = "sdkList";
}
 
enum SharePlatform { all, wx, wxcircle, qq, qqzone, sina }