feat:firebase统计和事件上报接入.
This commit is contained in:
parent
3bccec750b
commit
5094348f85
@ -131,6 +131,7 @@ class MineSetLogic extends BaseGetXController {
|
|||||||
await ApiRepository.to.userLogout(deviceld: getPushDeviceID);
|
await ApiRepository.to.userLogout(deviceld: getPushDeviceID);
|
||||||
final String getMobile = (await Storage.getMobile())!;
|
final String getMobile = (await Storage.getMobile())!;
|
||||||
if (entity.errorCode!.codeIsSuccessful) {
|
if (entity.errorCode!.codeIsSuccessful) {
|
||||||
|
ApmHelper.instance.logout();
|
||||||
ApmHelper.instance.trackEvent('logout', {
|
ApmHelper.instance.trackEvent('logout', {
|
||||||
'lock_name': BlueManage().connectDeviceName,
|
'lock_name': BlueManage().connectDeviceName,
|
||||||
'account':
|
'account':
|
||||||
@ -149,6 +150,7 @@ class MineSetLogic extends BaseGetXController {
|
|||||||
XSJPushProvider().initLocalNotification(isCancelLocalPush: true);
|
XSJPushProvider().initLocalNotification(isCancelLocalPush: true);
|
||||||
Get.offNamedUntil(Routers.starLockLoginPage, (Route route) => false);
|
Get.offNamedUntil(Routers.starLockLoginPage, (Route route) => false);
|
||||||
} else {
|
} else {
|
||||||
|
ApmHelper.instance.logout();
|
||||||
ApmHelper.instance.trackEvent('logout', {
|
ApmHelper.instance.trackEvent('logout', {
|
||||||
'lock_name': BlueManage().connectDeviceName,
|
'lock_name': BlueManage().connectDeviceName,
|
||||||
'account':
|
'account':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user