This commit is contained in:
wangcongtao
2020-06-10 17:31:41 +08:00
parent aaf50f128f
commit 35a699d951
17 changed files with 74 additions and 10 deletions

View File

@@ -119,7 +119,7 @@ public class AbsMogoApplication extends Application {
mode = DebugConfig.NET_MODE_QA;
}
AccountClientManager.init( sApp, mode, NetEnvironManager.OS_2C, "os2.0-launcher" );
AccountClientManager.getTicket( new TicketInfoCallback() {
getTicket( new TicketInfoCallback() {
@Override
public void onSuccess( String ticket ) {
SpStorage.setTicket( ticket );
@@ -133,6 +133,14 @@ public class AbsMogoApplication extends Application {
} );
}
private static void getTicket(TicketInfoCallback callback){
if ( DebugConfig.isLauncher() ) {
AccountClientManager.getTicket(callback);
} else {
AccountClientManager.getAppTicket( callback );
}
}
private static void initNetConfig() {
try {

View File

@@ -361,6 +361,7 @@ public class AIAssist implements VoiceClient.VoiceCmdCallBack, OnTtsListener {
intent.setAction( "pvetec.intent.action.txz.switch" );
intent.putExtra( "window_start_cancel", status );
intent.putExtra( "extra_switch_type", "window_start_cancel" );
Logger.d( TAG, "status = %d", status );
context.sendBroadcast( intent );
}