未验证 提交 d06e3f24 编写于 作者: O openharmony_ci 提交者: Gitee

!7187 【轻量级 PR】:update...

!7187 【轻量级 PR】:update zh-cn/application-dev/reference/apis/js-apis-application-DataShareExtensionAbility.md.
Merge pull request !7187 from 葛亚芳/N/A
......@@ -156,11 +156,11 @@ let rdbStore;
export default class DataShareExtAbility extends DataShareExtensionAbility {
insert(uri, valueBucket, callback) {
if (value == null) {
if (valueBucket == null) {
console.info('invalid valueBuckets');
return;
}
rdbStore.insert(TBL_NAME, value, function (err, ret) {
rdbStore.insert(TBL_NAME, valueBucket, function (err, ret) {
console.info('callback ret:' + ret);
if (callback != undefined) {
callback(err, ret);
......@@ -204,7 +204,7 @@ export default class DataShareExtAbility extends DataShareExtensionAbility {
if (predicates == null || predicates == undefined) {
return;
}
rdbStore.update(TBL_NAME, value, predicates, function (err, ret) {
rdbStore.update(TBL_NAME, valueBucket, predicates, function (err, ret) {
if (callback != undefined) {
callback(err, ret);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册