更新passport版本,分发onMapLoaded事件

This commit is contained in:
wangcongtao
2020-07-24 11:39:44 +08:00
parent 125fd65ece
commit 70074c5f87
8 changed files with 70 additions and 68 deletions

View File

@@ -123,23 +123,19 @@ public class MogoApplication extends AbsMogoApplication {
private void preparePassportEnvironment( IMogoServiceApis apis, Runnable after ) {
apis.getPassportManagerApi().requestTicket( new IMogoTicketCallback() {
@Override
public void onSuccess( String ticket ) {
public void onTicketGot( String ticket ) {
Logger.d( TAG, "ticket = %s", ticket );
SpStorage.setTicket( ticket );
if ( after != null ) {
after.run();
}
}
@Override
public void onError( int code, String msg ) {
Logger.w( TAG, "code = %s, msg = %s", code, msg );
if ( !TextUtils.isEmpty( Utils.getSn() ) ) {
if ( after != null ) {
after.run();
}
} else {
prepareBaseService(1_000L);
}
@Override
public void onLoginSuccess( String token, String sn ) {
if ( after != null ) {
after.run();
}
}
} );