提交 4bbb1e19 编写于 作者: fxy060608's avatar fxy060608

chore: getPushClientid => getPushClientId

上级 4129947d
......@@ -286,7 +286,7 @@ function wrapperExtras (name, extras) {
}
}
// 部分 API 直接实现
const unwrappers = ['getPushClientid', 'onPushMessage', 'offPushMessage']
const unwrappers = ['getPushClientId', 'onPushMessage', 'offPushMessage']
export function wrapper (name, invokeMethod, extras = {}) {
if (unwrappers.indexOf(name) > -1 || !isFn(invokeMethod)) {
......@@ -329,4 +329,4 @@ export function wrapper (name, invokeMethod, extras = {}) {
}
}
}
}
}
......@@ -49,7 +49,7 @@ function invokeGetPushCidCallbacks (cid, errMsg) {
getPushCidCallbacks.length = 0
}
export function getPushClientid (args) {
export function getPushClientId (args) {
if (!isPlainObject(args)) {
args = {}
}
......@@ -65,13 +65,13 @@ export function getPushClientid (args) {
let res
if (cid) {
res = {
errMsg: 'getPushClientid:ok',
errMsg: 'getPushClientId:ok',
cid
}
hasSuccess && success(res)
} else {
res = {
errMsg: 'getPushClientid:fail' + (errMsg ? ' ' + errMsg : '')
errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
}
hasFail && fail(res)
}
......@@ -99,4 +99,4 @@ export const offPushMessage = (fn) => {
onPushMessageCallbacks.splice(index, 1)
}
}
}
}
......@@ -11,7 +11,7 @@ export {
}
from '../../helpers/storage'
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
......@@ -106,4 +106,4 @@ export function createIntersectionObserver (component, options) {
export {
createMediaQueryObserver
}
}
import createMediaQueryObserver from '../../../mp-weixin/helpers/create-media-query-observer'
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
......@@ -26,4 +26,4 @@ export function requestPayment (params) {
export {
createMediaQueryObserver
}
}
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
}
from 'uni-core/service/api/plugin/push'
from 'uni-core/service/api/plugin/push'
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
}
from 'uni-core/service/api/plugin/push'
from 'uni-core/service/api/plugin/push'
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
}
from 'uni-core/service/api/plugin/push'
from 'uni-core/service/api/plugin/push'
......@@ -4,9 +4,9 @@ export {
createMediaQueryObserver
}
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
}
from 'uni-core/service/api/plugin/push'
from 'uni-core/service/api/plugin/push'
......@@ -4,9 +4,9 @@ export {
createMediaQueryObserver
}
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
}
from 'uni-core/service/api/plugin/push'
from 'uni-core/service/api/plugin/push'
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
}
from 'uni-core/service/api/plugin/push'
from 'uni-core/service/api/plugin/push'
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
}
from 'uni-core/service/api/plugin/push'
from 'uni-core/service/api/plugin/push'
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
}
from 'uni-core/service/api/plugin/push'
from 'uni-core/service/api/plugin/push'
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册