提交 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)) {
......
......@@ -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)
}
......
......@@ -11,7 +11,7 @@ export {
}
from '../../helpers/storage'
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
......
import createMediaQueryObserver from '../../../mp-weixin/helpers/create-media-query-observer'
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
......
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
......
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
......
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
......
......@@ -4,7 +4,7 @@ export {
createMediaQueryObserver
}
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
......
......@@ -4,7 +4,7 @@ export {
createMediaQueryObserver
}
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
......
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
......
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
......
export {
getPushClientid,
getPushClientId,
onPushMessage,
offPushMessage,
invokePushCallback
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册