diff --git a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md index 669b0b6c929653cc74436d04beb1e3a41a3e2b1a..b6bc46eae0e8acd671ce83cfab9859ba07f29e92 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md +++ b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceUsageStatistics.md @@ -947,7 +947,6 @@ queryAppGroup(bundleName : string, callback: AsyncCallback<number>): void } catch (error) { console.log('BUNDLE_ACTIVE queryAppGroup throw error, code is: ' + error.code + ',message is: ' + error.message); } -}); ``` ## usageStatistics.setAppGroup @@ -992,7 +991,7 @@ setAppGroup(bundleName: string, newGroup: GroupType): Promise<void> ```javascript let bundleName = "com.example.deviceUsageStatistics"; - let newGroup = bundleState.GroupType.ACTIVE_GROUP_DAILY; + let newGroup = usageStatistics.GroupType.DAILY_GROUP; try{ usageStatistics.setAppGroup(bundleName, newGroup).then( () => { @@ -1042,7 +1041,7 @@ setAppGroup(bundleName: string, newGroup: GroupType, callback: AsyncCallback< ```javascript let bundleName = "com.example.deviceUsageStatistics"; - let newGroup = bundleState.GroupType.ACTIVE_GROUP_DAILY; + let newGroup = usageStatistics.GroupType.DAILY_GROUP; try{ usageStatistics.setAppGroup(bundleName, newGroup, (err) => {