Ver a proveniência

1.增加print日志输出

tags/0.0.16+5
“yanghuaxuan” há 3 anos
ascendente
cometimento
a365a69e90
3 ficheiros alterados com 10 adições e 3 eliminações
  1. +1
    -0
      lib/pages/login_page/invite/login_invite_page.dart
  2. +3
    -1
      lib/util/shared_prefe_util.dart
  3. +6
    -2
      lib/util/turn_chain/turn_chain_util.dart

+ 1
- 0
lib/pages/login_page/invite/login_invite_page.dart Ver ficheiro

@@ -112,6 +112,7 @@ class _LoginInvitePageContainerState extends State<LoginInvitePageContainer> {
// SharedPreferencesUtil.setNetCacheResult(Constants.mobInvitedCode, tgid);

MobUtil.getInvitedCode().then((value) {
print("获取到的邀请码"+(value??""));
_editingController.text = value;
_onChange(value);
});


+ 3
- 1
lib/util/shared_prefe_util.dart Ver ficheiro

@@ -32,6 +32,8 @@ class SharedPreferencesUtil {
static Future<bool> setStringValue(String key, String value) async {
// if (!EmptyUtil.isEmpty(key) && !EmptyUtil.isEmpty(value)) {
Logger.log('key = ${key}, value = $value');
print("key:" + (key ?? "") + " value:" + (value ?? ""));

SharedPreferences prefs = await SharedPreferences.getInstance();
if (null != prefs) {
return prefs.setString(key, value);
@@ -52,6 +54,6 @@ class SharedPreferencesUtil {

static Future<bool> clean() async {
SharedPreferences prefs = await SharedPreferences.getInstance();
return await prefs.clear();
return await prefs.clear();
}
}

+ 6
- 2
lib/util/turn_chain/turn_chain_util.dart Ver ficheiro

@@ -267,8 +267,12 @@ class TurnChainUtil {
if (!Platform.isIOS) {
if (provider == GlobalConfig.PROVIDER_SN) {
RouterUtil.openWebview(webUrl, context);
}else{
await launch(appUrl);
} else {
if (appUrl.startsWith("http")) {
RouterUtil.openWebview(webUrl, context);
} else {
await launch(appUrl);
}
}
rlt = true;
}


||||||
x
 
000:0
Carregando…
Cancelar
Guardar