HarmonyOS 鸿蒙Next:新数据库调用cloudDBZone.executeUpsert()成功回调但无数据问题

发布于 1周前 作者 h691938207 来自 鸿蒙OS

HarmonyOS 鸿蒙Next:新数据库调用cloudDBZone.executeUpsert()成功回调但无数据问题

/**
* 注册用户
*/
private suspend fun registerUserByGoogle(
agcUser: AGConnectUser,
googleSignInAccount: GoogleSignInAccount,
createTime: Long,
lastSignInTime: Long,
): ApiResult<Boolean?> {
Loger.d(“DASSSw”, “registerUserByGoogle 首次登录,先去注册用户信息”)
val userInfo = CloudUserInfo()
userInfo.userId = agcUser.uid
userInfo.userIdx = System.currentTimeMillis()
userInfo.googleId = agcUser.providerId
userInfo.email = googleSignInAccount.email ?: “”
userInfo.userHeader = googleSignInAccount.photoUrl.toString()
userInfo.userName = googleSignInAccount.displayName ?: “”
userInfo.createTime = createTime
userInfo.lastSignInTime = lastSignInTime
val userDBZone = AGC.getUserDBZone()
if (userDBZone == null) {
Loger.d(“DASSSw”, “registerUserByGoogle userDBZone nul”)
return ApiResult(ApiCode.Error_1004, null)
}
return suspendCoroutine { coroutine ->
userDBZone.executeUpsert(userInfo)
.addOnSuccessListener {
Loger.d(“DASSSw”, “registerUserByGoogle success $it”)
coroutine.resume(ApiResult(data = true))
}
.addOnFailureListener {
Loger.d(“DASSSw”, "registerUserByGoogle error ${it.message} ")
coroutine.resume(ApiResult(ApiCode.Error_1003, errorMessage = it.message))
}
}
}

9 回复

尊敬的开发者您好,该问题建议您还可以选择通过在线提单来进一步解决:https://developer.huawei.com/consumer/cn/support/feedback/#/,感谢您的反馈和支持。

解决了么?
您好,能否提供下日志呢?

云数据库日志怎么捞?

获取ide的日志

11:01:44.322 DASSSw com.ruyi.keepprivate D (LoginRepo.kt:57).loginByAGCGoogle {loginByAGCGoogle 开始认证} 11:01:44.323 DecorView com.ruyi.keepprivate I notifyKeepScreenOnChanged: keepScreenOn=false 11:01:44.324 DASSSw com.ruyi.keepprivate D (LoginRepo.kt:161).authAGCByGoogle {loginByAGCGoogle googleId 110918865794745686585} 11:01:44.324 MSHandlerLifeCycle com.ruyi.keepprivate I removeMultiSplitHandler: no exist. decor=DecorView@ca73ce4[MainActivity] 11:01:44.377 ViewRoot…ctivity] com.ruyi.keepprivate I performTraversals params={(0,0)(fillxfill) sim={state=always_hidden adjust=resize forwardNavigation} layoutInDisplayCutoutMode=shortEdges ty=BASE_APPLICATION fmt=TRANSPARENT wanim=0x1030309 fl=81810100 pfl=16020040 vsysui=2010 apr=LIGHT_STATUS_BARS LIGHT_NAVIGATION_BARS bhv=DEFAULT fitSides= naviIconColor=0} 11:01:44.380 ViewRoot…ctivity] com.ruyi.keepprivate I performTraversals mFirst=false windowShouldResize=false viewVisibilityChanged=false mForceNextWindowRelayout=false params={(0,0)(fillxfill) sim={state=always_hidden adjust=resize forwardNavigation} layoutInDisplayCutoutMode=shortEdges ty=BASE_APPLICATION fmt=TRANSPARENT wanim=0x1030309 fl=81810100 pfl=16020040 vsysui=2010 apr=LIGHT_STATUS_BARS LIGHT_NAVIGATION_BARS bhv=DEFAULT fitSides= naviIconColor=0} 11:01:44.385 ViewRoot…ctivity] com.ruyi.keepprivate I updateBlastSurfaceIfNeeded mBlastBufferQueue=0x7803632470 isSameSurfaceControl=true 11:01:44.386 BLASTBufferQueue com.ruyi.keepprivate I update, w= 1080 h= 2400 mName = ViewRootImpl@2862c68[MainActivity] mNativeObject= 0x7803632470 sc.mNativeObject= 0x779363e640 format= -2 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2898 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 11:01:44.386 ViewRoot…ctivity] com.ruyi.keepprivate I Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)0 dur=5 res=0x0 s={true 0x789362e8d0} ch=false seqId=0 11:01:44.389 ViewRoot…ctivity] com.ruyi.keepprivate I MSG_WINDOW_FOCUS_CHANGED 1 0 11:01:44.390 ViewRoot…ctivity] com.ruyi.keepprivate I mThreadedRenderer.initializeIfNeeded()#2 mSurface={isValid=true 0x789362e8d0} 11:01:44.390 InputMethodManager com.ruyi.keepprivate D startInputInner - Id : 0 11:01:44.390 InputMethodManager com.ruyi.keepprivate I startInputInner - mService.startInputOrWindowGainedFocus 11:01:44.393 observer…gChanged com.ruyi.keepprivate D (AppThemeModelConfig.kt:32).invokeSuspend {isFollowSystem = true, isSystemInLightTheme = true, isUserInLightModel = false} 11:01:44.430 ViewRoot…ctivity] com.ruyi.keepprivate I handleAppVisibility mAppVisible = true visible = false 11:01:44.431 ViewRoot…ctivity] com.ruyi.keepprivate I stopped(true) old = false 11:01:44.431 ViewRoot…ctivity] com.ruyi.keepprivate I WindowStopped on com.ruyi.keepprivate/com.google.android.gms.auth.api.signin.internal.SignInHubActivity set to true 11:01:44.433 MSHandlerLifeCycle com.ruyi.keepprivate I removeMultiSplitHandler: no exist. decor=DecorView@449fc86[SignInHubActivity] 11:01:44.435 MSHandlerLifeCycle com.ruyi.keepprivate I removeMultiSplitHandler: no exist. decor=DecorView@449fc86[SignInHubActivity] 11:01:44.435 OpenGLRenderer com.ruyi.keepprivate D setSurface called with nullptr 11:01:44.435 OpenGLRenderer com.ruyi.keepprivate D setSurface() destroyed EGLSurface 11:01:44.435 OpenGLRenderer com.ruyi.keepprivate D destroyEglSurface 11:01:44.436 ViewRoot…ctivity] com.ruyi.keepprivate I dispatchDetachedFromWindow 11:01:44.438 InputTransport com.ruyi.keepprivate D Input channel destroyed: '3041a3 ', fd=137 11:01:44.484 DecorView com.ruyi.keepprivate I notifyKeepScreenOnChanged: keepScreenOn=false 11:01:44.488 ViewRoot…ctivity] com.ruyi.keepprivate I performTraversals params={(0,0)(fillxfill) sim={state=always_hidden adjust=resize} layoutInDisplayCutoutMode=shortEdges ty=BASE_APPLICATION fmt=TRANSPARENT wanim=0x1030309 fl=81810100 pfl=16020040 bhv=DEFAULT fitSides= naviIconColor=0} 11:01:44.491 ViewRoot…ctivity] com.ruyi.keepprivate I performTraversals mFirst=false windowShouldResize=false viewVisibilityChanged=false mForceNextWindowRelayout=false params={(0,0)(fillxfill) sim={state=always_hidden adjust=resize} layoutInDisplayCutoutMode=shortEdges ty=BASE_APPLICATION fmt=TRANSPARENT wanim=0x1030309 fl=81810100 pfl=16020040 bhv=DEFAULT fitSides= naviIconColor=0} 11:01:44.497 ViewRoot…ctivity] com.ruyi.keepprivate I updateBlastSurfaceIfNeeded mBlastBufferQueue=0x7803632470 isSameSurfaceControl=true 11:01:44.498 BLASTBufferQueue com.ruyi.keepprivate I update, w= 1080 h= 2400 mName = ViewRootImpl@2862c68[MainActivity] mNativeObject= 0x7803632470 sc.mNativeObject= 0x77936417c0 format= -2 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2898 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 11:01:44.498 ViewRoot…ctivity] com.ruyi.keepprivate I Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)0 dur=6 res=0x0 s={true 0x789362e8d0} ch=false seqId=0 11:01:44.527 FrameEvents com.ruyi.keepprivate E updateAcquireFence: Did not find frame. 11:01:44.556 ImageReader_JNI com.ruyi.keepprivate W Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers 11:01:44.627 FrameEvents com.ruyi.keepprivate E updateAcquireFence: Did not find frame. 11:01:44.633 ImageReader_JNI com.ruyi.keepprivate W Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers 11:01:44.667 DASSSw com.ruyi.keepprivate D (LoginRepo.kt:165).authAGCByGoogle {currentUser.providerId = 110918865794745686585, googleId = 110918865794745686585} 11:01:44.667 DASSSw com.ruyi.keepprivate D (LoginRepo.kt:168).authAGCByGoogle {loginByAGCGoogle have cache user} 11:01:44.674 [AGC_LOG…viceImpl com.ruyi.keepprivate I sendRequest2 11:01:44.675 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.675 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.675 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.675 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.676 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.676 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.676 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.676 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.680 [AGC_LOG]AGCHost com.ruyi.keepprivate I getCachedHostAsync 11:01:44.681 [AGC_LOG]AGCHost com.ruyi.keepprivate I isTTLValid false:1718397569249 11:01:44.681 [AGC_LOG…viceImpl com.ruyi.keepprivate I clientToken:true 11:01:44.681 [AGC_LOG…viceImpl com.ruyi.keepprivate I accessToken:false 11:01:44.681 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.681 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.681 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.681 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.681 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.681 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.681 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.681 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:44.682 Security…Instance com.ruyi.keepprivate I get assets bks 11:01:44.694 Security…tManager com.ruyi.keepprivate I loadBksCA 11:01:44.694 Security…tManager com.ruyi.keepprivate I get bks from assets 11:01:44.834 TrafficStats com.ruyi.keepprivate D tagSocket(81) with statsTag=0xffffffff, statsUid=-1 11:01:45.950 Security…ctoryNew com.ruyi.keepprivate I createSocket s host port autoClose 11:01:45.950 Security…ctoryNew com.ruyi.keepprivate I set default protocols 11:01:45.950 Security…ctoryNew com.ruyi.keepprivate I set default cipher suites 11:01:46.056 Security…tManager com.ruyi.keepprivate I checkServerTrusted begin ,server ca chain size is : 2 ,auth type is : GENERIC 11:01:46.060 Security…tManager com.ruyi.keepprivate I check server i : 0 11:01:46.101 Security…tManager com.ruyi.keepprivate I client root ca size is : 31 11:01:46.143 Security…tManager com.ruyi.keepprivate I checkServerTrusted succeed ,root ca issuer is : CN=GlobalSign, O=GlobalSign, OU=GlobalSign Root CA - R3 11:01:46.410 DASSSw com.ruyi.keepprivate D (LoginRepo.kt:214).onSuccess {createTime 1717572820961 lastSignInTime = 1718243915185} 11:01:46.410 DASSSw com.ruyi.keepprivate D (LoginRepo.kt:82).loadAGCCloudUserInfo {loadUserInfo 查询用户信息} 11:01:46.412 AGC_FlexibleDecrypt com.ruyi.keepprivate D init 11:01:46.413 AGC_Keys com.ruyi.keepprivate D build aes key, iterationCount:1 11:01:46.414 AGC_Keys com.ruyi.keepprivate D build aes key end 11:01:46.417 AGC_Instance com.ruyi.keepprivate D AGConnectInstanceImpl init 11:01:46.417 AGC_Serv…pository com.ruyi.keepprivate D addService start 11:01:46.417 AGC_Serv…pository com.ruyi.keepprivate D addService end 11:01:46.417 AGC_Serv…pository com.ruyi.keepprivate D addService start 11:01:46.417 AGC_Serv…pository com.ruyi.keepprivate D addService start 11:01:46.417 AGC_Serv…pository com.ruyi.keepprivate D addService end 11:01:46.417 AGC_Instance com.ruyi.keepprivate D AGConnectInstanceImpl init end 11:01:46.428 InputTransport com.ruyi.keepprivate D Input channel destroyed: ‘ClientS’, fd=106 11:01:46.507 Security…303: CBC com.ruyi.keepprivate E decrypt 1 content is null 11:01:46.508 Security…303: CBC com.ruyi.keepprivate E decrypt 1 content is null 11:01:46.508 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:46.508 AGC_ConfigImpl com.ruyi.keepprivate D getRoutePolicy 11:01:46.508 NaturalBase com.ruyi.keepprivate I InitialDefaultNaturalStore: upgrade system to support multiple storage location at default region. 11:01:46.508 NaturalBase com.ruyi.keepprivate W UpgradeToMultiStore: mdkir return with -1. 11:01:46.509 SQLiteDBHandlePool com.ruyi.keepprivate W CreateDatabasePath: mdkir return with -1. 11:01:46.518 SystemUp…eManager com.ruyi.keepprivate I UpgradeSystem: source version is 3.0, target version is 3.0, not need to upgrade system 11:01:46.518 SystemUp…eManager com.ruyi.keepprivate I DropTable table t_index_schema is not exist. 11:01:46.518 SystemUp…eManager com.ruyi.keepprivate I DropTable table t_schema_negotiate_info is not exist. 11:01:46.518 SystemUp…eManager com.ruyi.keepprivate I DropTable table t_nstore_permission is not exist. 11:01:46.518 NaturalBase com.ruyi.keepprivate D InitialObjectTypeCache: initialize ObjectType cache from database. 11:01:46.519 NaturalBase com.ruyi.keepprivate D InitialObjectTypeCache: Initialize ObjectType: CloudUserInfo. 11:01:46.519 NaturalBase com.ruyi.keepprivate D InitialObjectTypeCache: current ObjectType version: 10. 11:01:46.519 [Natural…dule-SG] com.ruyi.keepprivate D [Initialize] Enter 11:01:46.519 [Natural…ator-SG] com.ruyi.keepprivate I TcpComm-Initialize Enter 11:01:46.519 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm create method Enter 11:01:46.519 [Transfe…ager-SG] com.ruyi.keepprivate I TcpComm-TransferTaskQueueManager Initialize. 11:01:46.519 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc thread enter 11:01:46.519 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc checkSize size = 0 11:01:46.519 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc transferTaskQueue is empty, start wait. 11:01:46.520 [Natural…ator-SG] com.ruyi.keepprivate I TcpComm-Initialize Exit 11:01:46.520 [Natural…ator-SG] com.ruyi.keepprivate I TcpComm-RegisterIncomingDataHandler initialized = 1 11:01:46.520 [Natural…ator-SG] com.ruyi.keepprivate I TcpComm-RegisterConnectivityChannelDataHandler initialized = 1 11:01:46.520 [Natural…dule-SG] com.ruyi.keepprivate D [Initialize] Enter. 11:01:46.520 [TcpChan…vice-SG] com.ruyi.keepprivate D TcpComm-ConnectToCloud thread enter 11:01:46.521 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-ConnectToCloud start. callSrc = 2 connectTag = 466B27D3EF1ECA7D#1718247706521 11:01:46.521 [Natural…dule-SG] com.ruyi.keepprivate D [SyncFromStoreMain] Thread enter. 11:01:46.521 [Natural…dule-SG] com.ruyi.keepprivate D [SyncFromStoreMain] Thread halt without overtime 11:01:46.521 [Natural…dule-SG] com.ruyi.keepprivate I [SyncFromCloudMain] Thread enter. 11:01:46.521 [Natural…dule-SG] com.ruyi.keepprivate I [SyncFromCloudMain] Thread halt, waiting syncFromCloud_signal. 11:01:46.522 [DeviceS…ager-SG] com.ruyi.keepprivate D RegisterSchemaUpgradeHandler finished 11:01:46.522 [Natural…ator-SG] com.ruyi.keepprivate I TcpComm-RegisterConnectivityChannelDataHandler initialized = 1 11:01:46.523 CloudDBZ…ctSchema com.ruyi.keepprivate D build: start build schema of CloudUserInfo 11:01:46.530 NaturalBase com.ruyi.keepprivate D InnerCreateObjectType: ObjectType count: 1, version: 10. 11:01:46.530 NaturalBase com.ruyi.keepprivate W GenerateDiffSchemas: schema has no added fields 11:01:46.531 AGConnectCloudDB com.ruyi.keepprivate D innerOpenCloudDBZone: start open the CloudDBZone. 11:01:46.532 NaturalStoreManager com.ruyi.keepprivate W GetNaturalStore: cloudDBZone may be closed, ns id: 53357576 11:01:46.532 NaturalStoreManager com.ruyi.keepprivate D CreateNaturalStore: Create the cloudDBZone:CloudUserZone 11:01:46.532 SQLiteDBHandlePool com.ruyi.keepprivate W CreateDatabasePath: mdkir return with -1. 11:01:46.536 DatabaseManager com.ruyi.keepprivate D GetDBFileSize: dbFileSize = 32768 bytes. 11:01:46.536 DatabaseManager com.ruyi.keepprivate I GetAllObjectTypes: step done! 11:01:46.537 NaturalStoreManager com.ruyi.keepprivate D IncreaseNaturalStoreCounter: cloudDBZone handles: 1 11:01:46.542 NaturalStoreManager com.ruyi.keepprivate D GetNaturalStoreInner: cloudDBZone name: CloudUserZone 11:01:46.542 NaturalBase com.ruyi.keepprivate I SetOrderBy: limit query without orderBy. 11:01:46.542 NaturalStore com.ruyi.keepprivate I QueryCloudOnly: table name: CloudUserInfo 11:01:46.542 [Natural…dule-SG] com.ruyi.keepprivate D [OnQuery] Enter for store name CloudUserZone. 11:01:46.542 [Natural…dule-SG] com.ruyi.keepprivate D [CommitSyncTask] type:4 channelId:0 taskId:1 11:01:46.542 [TcpChan…vice-SG] com.ruyi.keepprivate D TcpComm connectLevel = 0 isConnectToCloud = 0 11:01:46.542 [Natural…dule-SG] com.ruyi.keepprivate I [CommitSyncTask] Request has been pushed into message queue, but failed to send for unavailable network connection. 11:01:46.542 [Natural…dule-SG] com.ruyi.keepprivate D [RecordUserQueryCallback] add query id CloudUserZone_1 11:01:46.542 [Natural…dule-SG] com.ruyi.keepprivate D [RecordUserQueryCallback] add query id CloudUserZone_1 success. 11:01:46.542 [Natural…dule-SG] com.ruyi.keepprivate D [OnQuery] waiting for query from cloud 11:01:46.548 CertificateService com.ruyi.keepprivate W [getUserInfo] The AGConnectUser is null. 11:01:46.548 NaturalBase com.ruyi.keepprivate E [CredentialServiceImplForAndroid][getTokenValue] failed to get method for getAccessToken because len over limit. len = 0 11:01:46.550 NaturalBase com.ruyi.keepprivate I [NaturalConfig][InitCertFile] Cert was init finish. 11:01:46.793 [TrsClie…vice-SG] com.ruyi.keepprivate I TcpComm-Trs request taskId = 3BA3CA8DD8880A11#1718247706793 11:01:46.793 [TrsSsl-SG] com.ruyi.keepprivate I TcpComm clientTokenLen = 242 11:01:46.793 [TrsSsl-SG] com.ruyi.keepprivate D TcpComm-PrintTcpInfo sendParcelRetryCount:0 cwnd:10 sendRate:351939 rcvRto:0 11:01:46.880 [TrsSsl-SG] com.ruyi.keepprivate I TcpComm ClearSsl. 11:01:46.880 [TrsSsl-SG] com.ruyi.keepprivate I TcpComm-ClearSsl Finish free ssl. 11:01:46.881 [TrsSsl-SG] com.ruyi.keepprivate I TcpComm-ClearSsl Finish free ssl context. 11:01:46.881 [TrsSsl-SG] com.ruyi.keepprivate I TcpComm-CloseSocket close socketFd. 11:01:46.881 [TrsSsl-SG] com.ruyi.keepprivate D TcpComm ClearSsl finish. 11:01:46.881 [TrsClie…vice-SG] com.ruyi.keepprivate D TcpComm-ParseOneIpPort Success 11:01:46.881 [TrsClie…vice-SG] com.ruyi.keepprivate D TcpComm-ParseOneIpPort Success 11:01:46.881 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-ConnectToCloud Random getIpPort. ip = 119.8.167.82 port = 8091 11:01:46.881 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-ConnectToCloud connect socket. connectFlag = 466B27D3EF1ECA7D#1718247706521 11:01:46.881 NaturalBase com.ruyi.keepprivate I [NaturalConfig][InitCertFile] Cert was init finish. 11:01:47.124 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-ConnectToCloud ConnectServerSocket success. 1718247707124 11:01:47.124 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-SendAgcInfoToCloud Enter. 11:01:47.125 [TcpSsl-SG] com.ruyi.keepprivate D TcpComm-PrintTcpInfo sendParcelRetryCount:0 cwnd:10 sendRate:345591 rcvRto:0 11:01:47.208 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-ReceiveDeviceId recvSize = 14 11:01:47.208 [TcpChan…vice-SG] com.ruyi.keepprivate D TcpComm-OnReceiveParcel, type = 7 length = 8 11:01:47.208 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-OnReceiveParcel Receiver deviceId response. deviceId = 14127 11:01:47.208 [TcpChan…vice-SG] com.ruyi.keepprivate W TcpComm-ReceiveDeviceId Decode data decodeRes = 7 11:01:47.208 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-VerifyDeviceId. isDeviceIdAllocate = 1 deviceId = 14127 needNotify = 1 11:01:47.208 [TcpChan…vice-SG] com.ruyi.keepprivate D TcpComm-Notify connectivityChangeHandler connectivityStatus = 0 handlerSize = 2 11:01:47.209 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc transferTaskQueue has been wakeup. 11:01:47.209 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc checkSize size = 0 11:01:47.209 [TcpChan…vice-SG] com.ruyi.keepprivate D TcpComm-HeartBeatProc heart beat thread enter 11:01:47.209 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc transferTaskQueue is empty, start wait. 11:01:47.209 [Natural…dule-SG] com.ruyi.keepprivate I [OnConnected] Communicator connect. firstConnect = 1 11:01:47.209 [Natural…dule-SG] com.ruyi.keepprivate D [CommitSyncTask] type:8 channelId:14127 taskId:508929527528 11:01:47.209 [Natural…dule-SG] com.ruyi.keepprivate D [CommitSyncTask] type:3 channelId:14127 taskId:573453635446716923 11:01:47.209 [Natural…dule-SG] com.ruyi.keepprivate D [ModifyAndNotifySyncModuleState]: status:100 11:01:47.209 [Natural…dule-SG] com.ruyi.keepprivate D [SyncFromStoreMain] Thread continue 11:01:47.209 SecretKeyManager com.ruyi.keepprivate D OnConnected: on first connect, no need check key. 11:01:47.209 [Natural…dule-SG] com.ruyi.keepprivate I [ProcessFromStoreDataQueue] QueueSize:3 11:01:47.209 [Natural…dule-SG] com.ruyi.keepprivate D [ProcessFromStoreDataQueue] request type: 4 11:01:47.209 [Natural…dule-SG] com.ruyi.keepprivate I [ProcessObjectQuery] Enter. 11:01:47.209 NaturalStoreManager com.ruyi.keepprivate D GetNaturalStoreInner: cloudDBZone id: 53357576 11:01:47.209 NaturalStoreManager com.ruyi.keepprivate D ReleaseNaturalStoreInner: cloudDBZone name: CloudUserZone 11:01:47.209 [Natural…dule-SG] com.ruyi.keepprivate D [StartMonitorOperation] link freeze thread enter 11:01:47.209 [TcpChan…vice-SG] com.ruyi.keepprivate D TcpComm-ConnectToCloud thread end 11:01:47.210 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-ReceiveBufferProc thread enter. 466B27D3EF1ECA7D#1718247706521 11:01:47.212 CertificateService com.ruyi.keepprivate W [getUserInfo] The AGConnectUser is null. 11:01:47.212 NaturalBase com.ruyi.keepprivate E [CredentialServiceImplForAndroid][getTokenValue] failed to get method for getAccessToken because len over limit. len = 0 11:01:47.213 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][BuildClientInfo]productId:388421841222199694 isLogin:0 schemaVer:10 encryptVer:0 11:01:47.213 NaturalStore com.ruyi.keepprivate I [SyncModuleUtils][BuildNewRequestHeader] store name : CloudUserZone 11:01:47.213 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][BuildMessageInfo]type:5 channelId:14127 taskId:1 11:01:47.213 [Natural…dule-SG] com.ruyi.keepprivate D [BuildObjectQueryRequest] query Id CloudUserZone_1 11:01:47.213 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][buildSyncMessageBuffer]Start build sync message buffer. 11:01:47.215 CertificateService com.ruyi.keepprivate W [getUserInfo] The AGConnectUser is null. 11:01:47.215 NaturalBase com.ruyi.keepprivate E [CredentialServiceImplForAndroid][getTokenValue] failed to get method for getAccessToken because len over limit. len = 0 11:01:47.215 [Natural…ator-SG] com.ruyi.keepprivate I TcpComm-Malloc communication buffer success, length = 515. 11:01:47.215 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][copyDataToSyncMessageBuffer] Copy data to sync message buffer. clientTokenLen = 242 accessTokenLen = 0 message format = 4 11:01:47.215 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][copyDataToSyncMessageBuffer] Save proto buffer data to buffer. Length = 263 11:01:47.215 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-AddExternalTransferTask length = 515 port = 8091 11:01:47.216 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][SendSyncMessageToCloud] SendSyncMessageToCloud result = 0 taskId = 1 11:01:47.216 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc transferTaskQueue has been wakeup. 11:01:47.216 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc checkSize size = 1 11:01:47.216 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc Get task and do send. length = 515 stopFlag = 0 11:01:47.216 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-SendContentBufferToCloud Enter, Send data direct. length = 515 11:01:47.216 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc checkSize size = 0 11:01:47.216 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc transferTaskQueue is empty, start wait. 11:01:47.382 [TcpChan…vice-SG] com.ruyi.keepprivate D TcpComm-OnReceiveParcel, type = 0 length = 31 11:01:47.382 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-NotifyReceiveOrReleaseBuffer Enter length = 31 11:01:47.382 [Natural…dule-SG] com.ruyi.keepprivate D [OnIncomingDataFromCloud] Enter. 11:01:47.382 [Natural…dule-SG] com.ruyi.keepprivate I [SyncFromCloudMain] Thread continue, syncFromCloud_signal get. 11:01:47.383 [Natural…dule-SG] com.ruyi.keepprivate I [ProcessFromCloudDataQueue] Enter. 11:01:47.383 [Natural…dule-SG] com.ruyi.keepprivate I [ProcessCloudMessage] responsetype:5 channelId:14127 taskId:1 result:0 11:01:47.383 NaturalStoreManager com.ruyi.keepprivate D GetNaturalStoreInner: cloudDBZone id: 53357576 11:01:47.383 [Natural…dule-SG] com.ruyi.keepprivate D [ProcessCloudMessage] SyncProperty: 2, PersistenceEnabled: 1 isReKey: 0 11:01:47.383 [Natural…dule-SG] com.ruyi.keepprivate I [ProcessObjectQueryResponseMessage] Enter. 11:01:47.383 [Natural…dule-SG] com.ruyi.keepprivate D ProcessObjectConventionQueryResponse] Res:0 queryId:CloudUserZone_1 index:[0, -1] total:0 11:01:47.383 NaturalStoreQuery com.ruyi.keepprivate D OnQueryFinished. 11:01:47.383 NaturalStoreManager com.ruyi.keepprivate D ReleaseNaturalStoreInner: cloudDBZone name: CloudUserZone 11:01:47.383 [Natural…dule-SG] com.ruyi.keepprivate I [SyncFromCloudMain] Thread halt, waiting syncFromCloud_signal. 11:01:47.383 [Natural…dule-SG] com.ruyi.keepprivate D [OnQuery] finish. resultCode = 0 11:01:47.383 NaturalStore com.ruyi.keepprivate D QueryCloudOnly: before SyncModifyFromCloud. 11:01:47.383 DatabaseManager com.ruyi.keepprivate D RemoveObjectsByFetchRequest: args number = 1. 11:01:47.383 NaturalStore com.ruyi.keepprivate D ExecuteCheckNativeCache: enter! 11:01:47.388 NaturalStoreManager com.ruyi.keepprivate D ReleaseNaturalStoreInner: cloudDBZone name: CloudUserZone 11:01:47.388 CloudDBZone com.ruyi.keepprivate I executeQuery: after native query. 11:01:47.389 DASSSw com.ruyi.keepprivate D (LoginRepo.kt:93).onSuccess {loadAGCCloudUserInfo success userId = null} 11:01:47.390 api_obje…jectList com.ruyi.keepprivate D NativeRelease: enter. 11:01:47.390 DASSSw com.ruyi.keepprivate D (LoginRepo.kt:122).registerAGCCloudUserByGoogle {registerUserByGoogle 注册} 11:01:47.397 CloudDBZone com.ruyi.keepprivate I executeUpsert: before nativeUpsert! 11:01:47.397 api_obje…ralStore com.ruyi.keepprivate D NativeUpsert: enter! 11:01:47.397 NaturalStoreManager com.ruyi.keepprivate D GetNaturalStoreInner: cloudDBZone name: CloudUserZone 11:01:47.397 NaturalStore com.ruyi.keepprivate D ExecuteUpsert: enter! objectList.size = 1, cloudDBZone: CloudUserZone 11:01:47.397 NaturalStore com.ruyi.keepprivate D ExecuteUpsert: local only or cloud cache mode 11:01:47.398 NaturalS…LiteImpl com.ruyi.keepprivate E GetObject: no data found. 11:01:47.398 CertificateService com.ruyi.keepprivate W [getUserInfo] The AGConnectUser is null. 11:01:47.398 NaturalBase com.ruyi.keepprivate E [CredentialServiceImplForAndroid][getTokenValue] failed to get method for getAccessToken because len over limit. len = 0 11:01:47.398 NaturalStore com.ruyi.keepprivate D SaveObjectsToDatabase: enter! upsertedObjectList.size = 1 11:01:47.398 DataUpsert com.ruyi.keepprivate D UpsertObjects: nativeCacheSize = 32942. 11:01:47.400 NaturalStore com.ruyi.keepprivate D ExecuteCheckNativeCache: enter! 11:01:47.400 NaturalStoreManager com.ruyi.keepprivate D ReleaseNaturalStoreInner: cloudDBZone name: CloudUserZone 11:01:47.400 CloudDBZone com.ruyi.keepprivate I executeUpsert: after nativeUpsert! 11:01:47.401 DASSSw com.ruyi.keepprivate D (LoginRepo.kt:142).onSuccess {registerAGCCloudUserByGoogle success 1} 11:01:47.401 DASSSw com.ruyi.keepprivate D (LoginRepo.kt:150).onComplete {registerAGCCloudUserByGoogle complete true} 11:01:47.403 DASSSw com.ruyi.keepprivate D (LoginRepo.kt:82).loadAGCCloudUserInfo {loadUserInfo 查询用户信息} 11:01:47.408 NaturalStoreManager com.ruyi.keepprivate D GetNaturalStoreInner: cloudDBZone name: CloudUserZone 11:01:47.408 NaturalBase com.ruyi.keepprivate I SetOrderBy: limit query without orderBy. 11:01:47.408 NaturalStore com.ruyi.keepprivate I QueryCloudOnly: table name: CloudUserInfo 11:01:47.408 [Natural…dule-SG] com.ruyi.keepprivate D [OnQuery] Enter for store name CloudUserZone. 11:01:47.408 [Natural…dule-SG] com.ruyi.keepprivate D [CommitSyncTask] type:4 channelId:14127 taskId:2 11:01:47.408 [Natural…dule-SG] com.ruyi.keepprivate D [RecordUserQueryCallback] add query id CloudUserZone_2 11:01:47.408 [Natural…dule-SG] com.ruyi.keepprivate D [RecordUserQueryCallback] add query id CloudUserZone_2 success. 11:01:47.408 [Natural…dule-SG] com.ruyi.keepprivate D [OnQuery] waiting for query from cloud 11:01:47.416 [Natural…dule-SG] com.ruyi.keepprivate D [ProcessFromStoreDataQueue] request type: 8 11:01:47.416 [CloudSu…ager-SG] com.ruyi.keepprivate I ProcessSubscribeRequest: subscribe id: 11:01:47.416 [CloudSu…ager-SG] com.ruyi.keepprivate I SendAllSubSyncMessage: resubscribe all subscription. 11:01:47.616 [Natural…dule-SG] com.ruyi.keepprivate D [ProcessFromStoreDataQueue] request type: 3 11:01:47.616 [Natural…dule-SG] com.ruyi.keepprivate I [ProcessReconnectAction] Enter. 11:01:47.616 NaturalStoreManager com.ruyi.keepprivate D GetAllNaturalStore: cloudDBZone name: CloudUserZone 11:01:47.616 [Natural…dule-SG] com.ruyi.keepprivate D [OnSyncResume] Enter for store id 53357576, and store name CloudUserZone. 11:01:47.616 [Natural…dule-SG] com.ruyi.keepprivate D [CommitSyncTask] type:2 channelId:14127 taskId:3 11:01:47.616 NaturalStoreManager com.ruyi.keepprivate D ReleaseNaturalStoreInner: cloudDBZone name: CloudUserZone 11:01:47.816 [Natural…dule-SG] com.ruyi.keepprivate D [ProcessFromStoreDataQueue] request type: 4 11:01:47.816 [Natural…dule-SG] com.ruyi.keepprivate I [ProcessObjectQuery] Enter. 11:01:47.816 NaturalStoreManager com.ruyi.keepprivate D GetNaturalStoreInner: cloudDBZone id: 53357576 11:01:47.816 NaturalStoreManager com.ruyi.keepprivate D ReleaseNaturalStoreInner: cloudDBZone name: CloudUserZone 11:01:47.820 CertificateService com.ruyi.keepprivate W [getUserInfo] The AGConnectUser is null. 11:01:47.820 NaturalBase com.ruyi.keepprivate E [CredentialServiceImplForAndroid][getTokenValue] failed to get method for getAccessToken because len over limit. len = 0 11:01:47.820 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][BuildClientInfo]productId:388421841222199694 isLogin:0 schemaVer:10 encryptVer:0 11:01:47.820 NaturalStore com.ruyi.keepprivate I [SyncModuleUtils][BuildNewRequestHeader] store name : CloudUserZone 11:01:47.820 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][BuildMessageInfo]type:5 channelId:14127 taskId:2 11:01:47.820 [Natural…dule-SG] com.ruyi.keepprivate D [BuildObjectQueryRequest] query Id CloudUserZone_2 11:01:47.820 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][buildSyncMessageBuffer]Start build sync message buffer. 11:01:47.821 CertificateService com.ruyi.keepprivate W [getUserInfo] The AGConnectUser is null. 11:01:47.821 NaturalBase com.ruyi.keepprivate E [CredentialServiceImplForAndroid][getTokenValue] failed to get method for getAccessToken because len over limit. len = 0 11:01:47.821 [Natural…ator-SG] com.ruyi.keepprivate I TcpComm-Malloc communication buffer success, length = 515. 11:01:47.821 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][copyDataToSyncMessageBuffer] Copy data to sync message buffer. clientTokenLen = 242 accessTokenLen = 0 message format = 4 11:01:47.821 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][copyDataToSyncMessageBuffer] Save proto buffer data to buffer. Length = 263 11:01:47.821 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-AddExternalTransferTask length = 515 port = 8091 11:01:47.821 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc transferTaskQueue has been wakeup. 11:01:47.821 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc checkSize size = 1 11:01:47.821 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc Get task and do send. length = 515 stopFlag = 0 11:01:47.821 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-SendContentBufferToCloud Enter, Send data direct. length = 515 11:01:47.822 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc checkSize size = 0 11:01:47.822 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc transferTaskQueue is empty, start wait. 11:01:47.822 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][SendSyncMessageToCloud] SendSyncMessageToCloud result = 0 taskId = 2 11:01:47.920 [TcpChan…vice-SG] com.ruyi.keepprivate D TcpComm-OnReceiveParcel, type = 0 length = 31 11:01:47.920 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-NotifyReceiveOrReleaseBuffer Enter length = 31 11:01:47.920 [Natural…dule-SG] com.ruyi.keepprivate D [OnIncomingDataFromCloud] Enter. 11:01:47.920 [Natural…dule-SG] com.ruyi.keepprivate I [SyncFromCloudMain] Thread continue, syncFromCloud_signal get. 11:01:47.920 [Natural…dule-SG] com.ruyi.keepprivate I [ProcessFromCloudDataQueue] Enter. 11:01:47.920 [Natural…dule-SG] com.ruyi.keepprivate I [ProcessCloudMessage] responsetype:5 channelId:14127 taskId:2 result:0 11:01:47.920 NaturalStoreManager com.ruyi.keepprivate D GetNaturalStoreInner: cloudDBZone id: 53357576 11:01:47.920 [Natural…dule-SG] com.ruyi.keepprivate D [ProcessCloudMessage] SyncProperty: 2, PersistenceEnabled: 1 isReKey: 0 11:01:47.920 [Natural…dule-SG] com.ruyi.keepprivate I [ProcessObjectQueryResponseMessage] Enter. 11:01:47.920 [Natural…dule-SG] com.ruyi.keepprivate D ProcessObjectConventionQueryResponse] Res:0 queryId:CloudUserZone_2 index:[0, -1] total:0 11:01:47.920 NaturalStoreQuery com.ruyi.keepprivate D OnQueryFinished. 11:01:47.920 NaturalStoreManager com.ruyi.keepprivate D ReleaseNaturalStoreInner: cloudDBZone name: CloudUserZone 11:01:47.920 [Natural…dule-SG] com.ruyi.keepprivate I [SyncFromCloudMain] Thread halt, waiting syncFromCloud_signal. 11:01:47.920 [Natural…dule-SG] com.ruyi.keepprivate D [OnQuery] finish. resultCode = 0 11:01:47.920 NaturalStore com.ruyi.keepprivate D QueryCloudOnly: before SyncModifyFromCloud. 11:01:47.920 DatabaseManager com.ruyi.keepprivate D RemoveObjectsByFetchRequest: args number = 1. 11:01:47.920 NaturalStore com.ruyi.keepprivate D ExecuteCheckNativeCache: enter! 11:01:47.920 NaturalStoreManager com.ruyi.keepprivate D ReleaseNaturalStoreInner: cloudDBZone name: CloudUserZone 11:01:47.921 CloudDBZone com.ruyi.keepprivate I executeQuery: after native query. 11:01:47.921 DASSSw com.ruyi.keepprivate D (LoginRepo.kt:93).onSuccess {loadAGCCloudUserInfo success userId = null} 11:01:47.922 api_obje…jectList com.ruyi.keepprivate D NativeRelease: enter. 11:01:48.022 [Natural…dule-SG] com.ruyi.keepprivate D [ProcessFromStoreDataQueue] request type: 2 11:01:48.022 [Natural…dule-SG] com.ruyi.keepprivate I [ProcessSyncResume] Enter. 11:01:48.022 NaturalStoreManager com.ruyi.keepprivate D GetNaturalStoreInner: cloudDBZone id: 53357576 11:01:48.022 DatabaseManager com.ruyi.keepprivate I GetAllObjectTypes: step done! 11:01:48.025 [Natural…dule-SG] com.ruyi.keepprivate I [ProcessNewLocalCommits] Enter. 11:01:48.025 [Natural…dule-SG] com.ruyi.keepprivate W [GetPendingRequest]Warn, Try to get an unset pending request. 11:01:48.028 CertificateService com.ruyi.keepprivate W [getUserInfo] The AGConnectUser is null. 11:01:48.028 NaturalBase com.ruyi.keepprivate E [CredentialServiceImplForAndroid][getTokenValue] failed to get method for getAccessToken because len over limit. len = 0 11:01:48.028 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][BuildClientInfo]productId:388421841222199694 isLogin:0 schemaVer:10 encryptVer:0 11:01:48.028 NaturalStore com.ruyi.keepprivate I [SyncModuleUtils][BuildNewRequestHeader] store name : CloudUserZone 11:01:48.028 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][BuildMessageInfo]type:2 channelId:14127 taskId:3 11:01:48.028 NaturalStoreManager com.ruyi.keepprivate D GetNaturalStoreInner: cloudDBZone id: 53357576 11:01:48.028 [Natural…dule-SG] com.ruyi.keepprivate I [GetTableSyncRetryStatus] syncRetryTables does not contain the naturalStoreId. 11:01:48.028 NaturalStore com.ruyi.keepprivate I GetObjectsToSync: objectType = isIncludingSyncing = 0 11:01:48.028 CertificateService com.ruyi.keepprivate W [getUserInfo] The AGConnectUser is null. 11:01:48.028 NaturalBase com.ruyi.keepprivate E [CredentialServiceImplForAndroid][getTokenValue] failed to get method for getAccessToken because len over limit. len = 0 11:01:48.029 DatabaseManager com.ruyi.keepprivate W FetchObjects: done! 11:01:48.029 NaturalStore com.ruyi.keepprivate D GetObjectsToSync: GetObjectsByIsForUpgrade success, 34 objects to sync 11:01:48.029 NaturalStore com.ruyi.keepprivate I GetUnsyncedObjectsWorker: Enter. outgoingDataToCloud size = 34, tempObjList size = 0 11:01:48.029 EntireEncryption com.ruyi.keepprivate D EncryptEntireEncryptedFields: objectItems size: 34. 11:01:48.029 EntireEncryption com.ruyi.keepprivate D EncryptEntireEncryptedFields: encrypt success. 11:01:48.030 [Natural…dule-SG] com.ruyi.keepprivate D [GetLocalObjectsToSync] GetLocalObjectsToSync done. 11:01:48.030 [Natural…dule-SG] com.ruyi.keepprivate D [ProcessObjectsToSync] ObjectToSync num = 34 11:01:48.030 [Natural…dule-SG] com.ruyi.keepprivate D [UpdatePendingRequest]Set pendingRequest = 1 11:01:48.030 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][buildSyncMessageBuffer]Start build sync message buffer. 11:01:48.031 CertificateService com.ruyi.keepprivate W [getUserInfo] The AGConnectUser is null. 11:01:48.031 NaturalBase com.ruyi.keepprivate E [CredentialServiceImplForAndroid][getTokenValue] failed to get method for getAccessToken because len over limit. len = 0 11:01:48.031 [Natural…ator-SG] com.ruyi.keepprivate I TcpComm-Malloc communication buffer success, length = 7952. 11:01:48.031 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][copyDataToSyncMessageBuffer] Copy data to sync message buffer. clientTokenLen = 242 accessTokenLen = 0 message format = 4 11:01:48.031 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][copyDataToSyncMessageBuffer] Save proto buffer data to buffer. Length = 7700 11:01:48.032 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-AddExternalTransferTask length = 7952 port = 8091 11:01:48.032 NaturalStore com.ruyi.keepprivate D [SyncModuleUtils][SendSyncMessageToCloud] SendSyncMessageToCloud result = 0 taskId = 3 11:01:48.032 NaturalStoreManager com.ruyi.keepprivate D ReleaseNaturalStoreInner: cloudDBZone name: CloudUserZone 11:01:48.032 NaturalStoreManager com.ruyi.keepprivate D ReleaseNaturalStoreInner: cloudDBZone name: CloudUserZone 11:01:48.032 [Natural…dule-SG] com.ruyi.keepprivate D [SyncFromStoreMain] Thread halt with overTime 300 11:01:48.032 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc transferTaskQueue has been wakeup. 11:01:48.032 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc checkSize size = 1 11:01:48.032 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc Get task and do send. length = 7952 stopFlag = 0 11:01:48.032 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-SendContentBufferToCloud Enter, Send data direct. length = 7952 11:01:48.032 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc checkSize size = 0 11:01:48.032 [Transfe…ager-SG] com.ruyi.keepprivate D TcpComm-TransferTaskQueueProc transferTaskQueue is empty, start wait. 11:01:48.116 [TcpChan…vice-SG] com.ruyi.keepprivate D TcpComm-OnReceiveParcel, type = 0 length = 29 11:01:48.116 [TcpChan…vice-SG] com.ruyi.keepprivate I TcpComm-NotifyReceiveOrReleaseBuffer Enter length = 29 11:01:48.116 [Natural…dule-SG] com.ruyi.keepprivate D [OnIncomingDataFromCloud] Enter. 11:01:48.116 [Natural…dule-SG] com.ruyi.keepprivate I [SyncFromCloudMain] Thread continue, syncFromCloud_signal get. 11:01:48.116 [Natural…dule-SG] com.ruyi.keepprivate I [ProcessFromCloudDataQueue] Enter. 11:01:48.116 [Natural…dule-SG] com.ruyi.keepprivate I [ProcessCloudMessage] responsetype:2 channelId:14127 taskId:3 result:2001015 11:01:48.116 [Natural…dule-SG] com.ruyi.keepprivate D [UpdatePendingRequest]Set pendingRequest = 0 11:01:48.116 NaturalStoreManager com.ruyi.keepprivate D GetNaturalStoreInner: cloudDBZone id: 53357576 11:01:48.116 [Natural…dule-SG] com.ruyi.keepprivate D [ProcessCloudMessage] SyncProperty: 2, PersistenceEnabled: 1 isReKey: 0 11:01:48.116 [Natural…dule-SG] com.ruyi.keepprivate W [RemoveSyncRetryTable] syncRetryTables does not contain the naturalStoreId. 11:01:48.116 [Natural…dule-SG] com.ruyi.keepprivate D [RemoveRetryTask] taskId = 3 tableName = 11:01:48.116 [Natural…dule-SG] com.ruyi.keepprivate D [ProcessObjectSyncResponseMessage] operationDataNum:0 resultCode:2001015 resultInfo: 11:01:48.116 NaturalStoreManager com.ruyi.keepprivate D ReleaseNaturalStoreInner: cloudDBZone name: CloudUserZone 11:01:48.116 [Natural…dule-SG] com.ruyi.keepprivate I [SyncFromCloudMain] Thread halt, waiting syncFromCloud_signal.

这是我整个登录操作的日志,没过滤任何关键字。大致流程是用

  1. 授权拿到google idtoken去serverless认证服务注册用户,获取到用户id
  2. 然后拿用户id去云数据库去存储区CloudUserInfo查询对象类型为CloudUserInfo的数据
  3. 如果数据不存在,则调用executeUpsert插入该用户id及相关信息, 按预期 问题出在第三步,executeUpsert的SuccessListener回调1,但是数据库里并没有数据

有要学HarmonyOS AI的同学吗,联系我:https://www.itying.com/goods-1206.html

实例chuang'j

object AGC {

private val instance by lazy {
val agcConnectOptions = AGConnectOptionsBuilder()
// .setRoutePolicy(AGCRoutePolicy.SINGAPORE)
.build(Utils.context)
AGConnectInstance.buildInstance(agcConnectOptions)
}

private val cloudDB by lazy {
AGConnectCloudDB.getInstance(instance, AGConnectAuth.getInstance(instance))
.apply { createObjectType(ObjectTypeInfoHelper.getObjectTypeInfo()) }
}

private var dbZoneUser: CloudDBZone? = null

suspend fun getUserDBZone(): CloudDBZone? {
return if (dbZoneUser != null) dbZoneUser!!
else {
val cloudDBZoneConfig = CloudDBZoneConfig(
"CloudUserZone",
CloudDBZoneConfig.CloudDBZoneSyncProperty.CLOUDDBZONE_CLOUD_CACHE,
CloudDBZoneConfig.CloudDBZoneAccessProperty.CLOUDDBZONE_PUBLIC,
)
cloudDBZoneConfig.persistenceEnabled = true
suspendCancellableCoroutine { coroutine ->
cloudDB.openCloudDBZone2(cloudDBZoneConfig, true)
.addOnSuccessListener {
dbZoneUser = it
coroutine.resume(it)
}
.addOnFailureListener {
coroutine.resume(null)
}
}
}
}

}

针对您提到的HarmonyOS鸿蒙Next系统中,使用cloudDBZone.executeUpsert()方法成功回调但无数据的问题,这通常涉及几个可能的方面:

  1. 数据一致性检查:首先确认执行executeUpsert()时传入的数据是否正确,包括主键值是否已存在。若主键重复且未更新非主键字段,可能导致数据看似未变化。

  2. 事务与同步:检查是否涉及事务处理,确保事务提交成功。此外,确认数据库操作是否在UI线程之外执行,避免阻塞UI。

  3. 回调逻辑:审查回调函数的实现,确保在回调中正确读取并处理了数据库返回的数据。有时数据已正确插入,但回调处理逻辑有误导致未能正确展示。

  4. 权限与配置:确认应用已获取必要的数据库访问权限,且数据库配置(如同步策略)正确无误。

  5. 日志与调试:启用更详细的日志记录,检查执行过程中的详细信息和错误提示,有助于定位问题。

如果问题依旧没法解决请联系官网客服,官网地址是: https://www.itying.com/category-93-b0.html

回到顶部