diff --git a/packages/playground/uts/unpackage/nativeplugins/test-uniplugin/android/src/io/dcloud/uniplugin/log.kt.map b/packages/playground/uts/unpackage/nativeplugins/test-uniplugin/android/src/io/dcloud/uniplugin/log.kt.map index 21d478e0cdf5699262b338017c035552f56794b2..a6da1cd1161741b115a140b32822ff8f10e6975c 100644 --- a/packages/playground/uts/unpackage/nativeplugins/test-uniplugin/android/src/io/dcloud/uniplugin/log.kt.map +++ b/packages/playground/uts/unpackage/nativeplugins/test-uniplugin/android/src/io/dcloud/uniplugin/log.kt.map @@ -1 +1 @@ -{"version":3,"sources":["/Users/fxy/Documents/projects/GitHub/uni-app/uni-app-next/packages/playground/uts/nativeplugins/test-uniplugin/android/src/io/dcloud/uniplugin/log.uts"],"names":["log","tag","msg","Log","e"],"mappings":"AAAA;AAAA,OAAgB,gBAAkB,CAAC;AACpB,IAASA,GAAG,CAACC,GAAW,EAAN,MAAM,EAAEC,GAAW,EAAN,MAAM,EAAE;IACpDC,GAAG,CAACC,CAAC,CAACH,GAAG,EAAEC,GAAG,CAAC,CAAC"} \ No newline at end of file +{"version":3,"sources":["/Users/fxy/Documents/projects/GitHub/uni-app/uni-app-next/packages/playground/uts/nativeplugins/test-uniplugin/android/src/io/dcloud/uniplugin/log.uts"],"names":["log","tag","msg","Log","e"],"mappings":";AAAA,OAAgB,gBAAkB,CAAC;AACpB,IAASA,GAAG,CAACC,GAAW,EAAN,MAAM,EAAEC,GAAW,EAAN,MAAM,EAAE;IACpDC,GAAG,CAACC,CAAC,CAACH,GAAG,EAAEC,GAAG,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/playground/uts/unpackage/nativeplugins/test-uniplugin/android/src/test.kt.map b/packages/playground/uts/unpackage/nativeplugins/test-uniplugin/android/src/test.kt.map index e3ca742c44847385181efa7a49f0fd02cb50f6bc..15274d8a76d38f027171f54151d2bcc3688e34a0 100644 --- a/packages/playground/uts/unpackage/nativeplugins/test-uniplugin/android/src/test.kt.map +++ b/packages/playground/uts/unpackage/nativeplugins/test-uniplugin/android/src/test.kt.map @@ -1 +1 @@ -{"version":3,"sources":["/Users/fxy/Documents/projects/GitHub/uni-app/uni-app-next/packages/playground/uts/nativeplugins/test-uniplugin/android/src/test.uts"],"names":["log","tag","msg","Log","e"],"mappings":";AAAA,OAAgB,gBAAkB,CAAC;AACpB,IAASA,GAAG,CAACC,GAAW,EAAN,MAAM,EAAEC,GAAW,EAAN,MAAM,EAAE;IACpDC,GAAG,CAACC,CAAC,CAACH,GAAG,EAAEC,GAAG,CAAC,CAAC"} \ No newline at end of file +{"version":3,"sources":["/Users/fxy/Documents/projects/GitHub/uni-app/uni-app-next/packages/playground/uts/nativeplugins/test-uniplugin/android/src/test.uts"],"names":["log","tag","msg","Log","e"],"mappings":"AAAA;AAAA,OAAgB,gBAAkB,CAAC;AACpB,IAASA,GAAG,CAACC,GAAW,EAAN,MAAM,EAAEC,GAAW,EAAN,MAAM,EAAE;IACpDC,GAAG,CAACC,CAAC,CAACH,GAAG,EAAEC,GAAG,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/uni-api/src/service/plugin/push.ts b/packages/uni-api/src/service/plugin/push.ts index 5da52856f030a4feb99d228a6890020c07ded6d8..1b7ab1fadde44c8bbbb0f0bd831af66e5167a527 100644 --- a/packages/uni-api/src/service/plugin/push.ts +++ b/packages/uni-api/src/service/plugin/push.ts @@ -75,7 +75,7 @@ function invokeGetPushCidCallbacks(cid?: string, errMsg?: string) { getPushCidCallbacks.length = 0 } -export function getPushCid(args: GetPushCidOptions) { +export function getPushClientid(args: GetPushCidOptions) { if (!isPlainObject(args)) { args = {} } @@ -86,10 +86,10 @@ export function getPushCid(args: GetPushCidOptions) { getPushCidCallbacks.push((cid?: string, errMsg?: string) => { let res: Record if (cid) { - res = { errMsg: 'getPushCid:ok', cid } + res = { errMsg: 'getPushClientid:ok', cid } hasSuccess && success(res) } else { - res = { errMsg: 'getPushCid:fail' + (errMsg ? ' ' + errMsg : '') } + res = { errMsg: 'getPushClientid:fail' + (errMsg ? ' ' + errMsg : '') } hasFail && fail(res) } hasComplete && complete(res) diff --git a/packages/uni-app-plus/dist/uni.runtime.esm.js b/packages/uni-app-plus/dist/uni.runtime.esm.js index 5300467e55bb6fe6d4886f1d79eccbdf5e31374f..2d99c29be262a23e1b37c5f78995682a1a23256a 100644 --- a/packages/uni-app-plus/dist/uni.runtime.esm.js +++ b/packages/uni-app-plus/dist/uni.runtime.esm.js @@ -11098,7 +11098,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) { }); getPushCidCallbacks.length = 0; } -function getPushCid(args) { +function getPushClientid(args) { if (!isPlainObject(args)) { args = {}; } @@ -11109,11 +11109,11 @@ function getPushCid(args) { getPushCidCallbacks.push((cid, errMsg) => { let res; if (cid) { - res = { errMsg: 'getPushCid:ok', cid }; + res = { errMsg: 'getPushClientid:ok', cid }; hasSuccess && success(res); } else { - res = { errMsg: 'getPushCid:fail' + (errMsg ? ' ' + errMsg : '') }; + res = { errMsg: 'getPushClientid:fail' + (errMsg ? ' ' + errMsg : '') }; hasFail && fail(res); } hasComplete && complete(res); @@ -19054,7 +19054,7 @@ var uni$1 = { setPageMeta: setPageMeta, getEnterOptionsSync: getEnterOptionsSync, getLaunchOptionsSync: getLaunchOptionsSync, - getPushCid: getPushCid, + getPushClientid: getPushClientid, onPushMessage: onPushMessage, offPushMessage: offPushMessage, onAppHide: onAppHide, diff --git a/packages/uni-app-plus/src/service/api/index.ts b/packages/uni-app-plus/src/service/api/index.ts index 64c6f30584731021fb70a93dc080821901d6bc1d..51e0ba766a00536436931f304d50172aef4ae406 100644 --- a/packages/uni-app-plus/src/service/api/index.ts +++ b/packages/uni-app-plus/src/service/api/index.ts @@ -121,7 +121,7 @@ export { setPageMeta, getEnterOptionsSync, getLaunchOptionsSync, - getPushCid, + getPushClientid, onPushMessage, offPushMessage, onAppHide, diff --git a/packages/uni-h5-vite/lib/api.json b/packages/uni-h5-vite/lib/api.json index a303ff2855a39e09d3ff57f48bcfe65657f6f33b..55fc7937cf6228c26ba42d5cbf035eeb293e70c7 100644 --- a/packages/uni-h5-vite/lib/api.json +++ b/packages/uni-h5-vite/lib/api.json @@ -44,7 +44,7 @@ "getLocation", "getNetworkType", "getProvider", - "getPushCid", + "getPushClientid", "getRealPath", "getRecorderManager", "getRightWindowStyle", diff --git a/packages/uni-h5/dist/uni-h5.es.js b/packages/uni-h5/dist/uni-h5.es.js index 48f165e456119126991c9916c27c6c76bcfd5e62..7022145b2b877d1c85841b85900a94403ec587f8 100644 --- a/packages/uni-h5/dist/uni-h5.es.js +++ b/packages/uni-h5/dist/uni-h5.es.js @@ -4599,7 +4599,7 @@ function invokeGetPushCidCallbacks(cid2, errMsg) { }); getPushCidCallbacks.length = 0; } -function getPushCid(args) { +function getPushClientid(args) { if (!isPlainObject(args)) { args = {}; } @@ -4610,10 +4610,10 @@ function getPushCid(args) { getPushCidCallbacks.push((cid2, errMsg) => { let res; if (cid2) { - res = { errMsg: "getPushCid:ok", cid: cid2 }; + res = { errMsg: "getPushClientid:ok", cid: cid2 }; hasSuccess && success(res); } else { - res = { errMsg: "getPushCid:fail" + (errMsg ? " " + errMsg : "") }; + res = { errMsg: "getPushClientid:fail" + (errMsg ? " " + errMsg : "") }; hasFail && fail(res); } hasComplete && complete(res); @@ -20282,7 +20282,7 @@ var api = /* @__PURE__ */ Object.defineProperty({ setPageMeta, getEnterOptionsSync, getLaunchOptionsSync, - getPushCid, + getPushClientid, onPushMessage, offPushMessage, onAppHide, @@ -22528,4 +22528,4 @@ var index = /* @__PURE__ */ defineSystemComponent({ return openBlock(), createBlock("div", clazz, [loadingVNode]); } }); -export { $emit, $off, $on, $once, index$8 as Ad, index$7 as AdContentPage, index$6 as AdDraw, index$1 as AsyncErrorComponent, index as AsyncLoadingComponent, index$y as Button, index$5 as Camera, index$w as Canvas, index$u as Checkbox, index$v as CheckboxGroup, index$a as CoverImage, index$b as CoverView, index$t as Editor, index$A as Form, index$s as Icon, index$r as Image, Input, index$z as Label, LayoutComponent, index$4 as LivePlayer, index$3 as LivePusher, Map$1 as Map, MovableArea, MovableView, index$q as Navigator, index$2 as PageComponent, index$9 as Picker, PickerView, PickerViewColumn, index$p as Progress, index$n as Radio, index$o as RadioGroup, ResizeSensor, index$m as RichText, ScrollView, index$l as Slider, Swiper, SwiperItem, index$k as Switch, index$j as Text, index$i as Textarea, UniServiceJSBridge$1 as UniServiceJSBridge, UniViewJSBridge$1 as UniViewJSBridge, index$e as Video, index$h as View, index$d as WebView, addInterceptor, addPhoneContact, arrayBufferToBase64, base64ToArrayBuffer, canIUse, canvasGetImageData, canvasPutImageData, canvasToTempFilePath, chooseFile, chooseImage, chooseLocation, chooseVideo, clearStorage, clearStorageSync, closePreviewImage, closeSocket, connectSocket, createAnimation$1 as createAnimation, createCameraContext, createCanvasContext, createInnerAudioContext, createIntersectionObserver, createLivePlayerContext, createMapContext, createMediaQueryObserver, createSelectorQuery, createVideoContext, cssBackdropFilter, cssConstant, cssEnv, cssVar, downloadFile, getApp$1 as getApp, getAppBaseInfo, getClipboardData, getCurrentPages$1 as getCurrentPages, getDeviceInfo, getEnterOptionsSync, getFileInfo, getImageInfo, getLaunchOptionsSync, getLeftWindowStyle, getLocale, getLocation, getNetworkType, getProvider, getPushCid, getRealPath, getRecorderManager, getRightWindowStyle, getSavedFileInfo, getSavedFileList, getScreenBrightness, getSelectedTextRange$1 as getSelectedTextRange, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, getSystemInfo, getSystemInfoSync, getTopWindowStyle, getVideoInfo, getWindowInfo, hideKeyboard, hideLeftWindow, hideLoading, hideNavigationBarLoading, hideRightWindow, hideTabBar, hideTabBarRedDot, hideToast, hideTopWindow, interceptors, invokePushCallback, loadFontFace, login, makePhoneCall, navigateBack, navigateTo, offAccelerometerChange, offAppHide, offAppShow, offCompassChange, offError, offNetworkStatusChange, offPageNotFound, offPushMessage, offUnhandledRejection, offWindowResize, onAccelerometerChange, onAppHide, onAppShow, onCompassChange, onError, onGyroscopeChange, onLocaleChange, onMemoryWarning, onNetworkStatusChange, onPageNotFound, onPushMessage, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onTabBarMidButtonTap, onUnhandledRejection, onUserCaptureScreen, onWindowResize, openDocument, openLocation, pageScrollTo, index$f as plugin, preloadPage, previewImage, reLaunch, redirectTo, removeInterceptor, removeSavedFileInfo, removeStorage, removeStorageSync, removeTabBarBadge, request, saveFile, saveImageToPhotosAlbum, saveVideoToPhotosAlbum, scanCode, sendSocketMessage, setClipboardData, setKeepScreenOn, setLeftWindowStyle, setLocale, setNavigationBarColor, setNavigationBarTitle, setPageMeta, setRightWindowStyle, setScreenBrightness, setStorage, setStorageSync, setTabBarBadge, setTabBarItem, setTabBarStyle, setTopWindowStyle, setupApp, setupPage, setupWindow, showActionSheet, showLeftWindow, showLoading, showModal, showNavigationBarLoading, showRightWindow, showTabBar, showTabBarRedDot, showToast, showTopWindow, startAccelerometer, startCompass, startGyroscope, startPullDownRefresh, stopAccelerometer, stopCompass, stopGyroscope, stopPullDownRefresh, switchTab, uni$1 as uni, uploadFile, upx2px, useI18n, useTabBar, vibrateLong, vibrateShort }; +export { $emit, $off, $on, $once, index$8 as Ad, index$7 as AdContentPage, index$6 as AdDraw, index$1 as AsyncErrorComponent, index as AsyncLoadingComponent, index$y as Button, index$5 as Camera, index$w as Canvas, index$u as Checkbox, index$v as CheckboxGroup, index$a as CoverImage, index$b as CoverView, index$t as Editor, index$A as Form, index$s as Icon, index$r as Image, Input, index$z as Label, LayoutComponent, index$4 as LivePlayer, index$3 as LivePusher, Map$1 as Map, MovableArea, MovableView, index$q as Navigator, index$2 as PageComponent, index$9 as Picker, PickerView, PickerViewColumn, index$p as Progress, index$n as Radio, index$o as RadioGroup, ResizeSensor, index$m as RichText, ScrollView, index$l as Slider, Swiper, SwiperItem, index$k as Switch, index$j as Text, index$i as Textarea, UniServiceJSBridge$1 as UniServiceJSBridge, UniViewJSBridge$1 as UniViewJSBridge, index$e as Video, index$h as View, index$d as WebView, addInterceptor, addPhoneContact, arrayBufferToBase64, base64ToArrayBuffer, canIUse, canvasGetImageData, canvasPutImageData, canvasToTempFilePath, chooseFile, chooseImage, chooseLocation, chooseVideo, clearStorage, clearStorageSync, closePreviewImage, closeSocket, connectSocket, createAnimation$1 as createAnimation, createCameraContext, createCanvasContext, createInnerAudioContext, createIntersectionObserver, createLivePlayerContext, createMapContext, createMediaQueryObserver, createSelectorQuery, createVideoContext, cssBackdropFilter, cssConstant, cssEnv, cssVar, downloadFile, getApp$1 as getApp, getAppBaseInfo, getClipboardData, getCurrentPages$1 as getCurrentPages, getDeviceInfo, getEnterOptionsSync, getFileInfo, getImageInfo, getLaunchOptionsSync, getLeftWindowStyle, getLocale, getLocation, getNetworkType, getProvider, getPushClientid, getRealPath, getRecorderManager, getRightWindowStyle, getSavedFileInfo, getSavedFileList, getScreenBrightness, getSelectedTextRange$1 as getSelectedTextRange, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, getSystemInfo, getSystemInfoSync, getTopWindowStyle, getVideoInfo, getWindowInfo, hideKeyboard, hideLeftWindow, hideLoading, hideNavigationBarLoading, hideRightWindow, hideTabBar, hideTabBarRedDot, hideToast, hideTopWindow, interceptors, invokePushCallback, loadFontFace, login, makePhoneCall, navigateBack, navigateTo, offAccelerometerChange, offAppHide, offAppShow, offCompassChange, offError, offNetworkStatusChange, offPageNotFound, offPushMessage, offUnhandledRejection, offWindowResize, onAccelerometerChange, onAppHide, onAppShow, onCompassChange, onError, onGyroscopeChange, onLocaleChange, onMemoryWarning, onNetworkStatusChange, onPageNotFound, onPushMessage, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onTabBarMidButtonTap, onUnhandledRejection, onUserCaptureScreen, onWindowResize, openDocument, openLocation, pageScrollTo, index$f as plugin, preloadPage, previewImage, reLaunch, redirectTo, removeInterceptor, removeSavedFileInfo, removeStorage, removeStorageSync, removeTabBarBadge, request, saveFile, saveImageToPhotosAlbum, saveVideoToPhotosAlbum, scanCode, sendSocketMessage, setClipboardData, setKeepScreenOn, setLeftWindowStyle, setLocale, setNavigationBarColor, setNavigationBarTitle, setPageMeta, setRightWindowStyle, setScreenBrightness, setStorage, setStorageSync, setTabBarBadge, setTabBarItem, setTabBarStyle, setTopWindowStyle, setupApp, setupPage, setupWindow, showActionSheet, showLeftWindow, showLoading, showModal, showNavigationBarLoading, showRightWindow, showTabBar, showTabBarRedDot, showToast, showTopWindow, startAccelerometer, startCompass, startGyroscope, startPullDownRefresh, stopAccelerometer, stopCompass, stopGyroscope, stopPullDownRefresh, switchTab, uni$1 as uni, uploadFile, upx2px, useI18n, useTabBar, vibrateLong, vibrateShort }; diff --git a/packages/uni-h5/src/service/api/index.ts b/packages/uni-h5/src/service/api/index.ts index 15fa1b647fe965775bcbe8ec95ed623ee7386d30..b34c8ac1b9b84d9a3c45db8d7fbacc983225565b 100644 --- a/packages/uni-h5/src/service/api/index.ts +++ b/packages/uni-h5/src/service/api/index.ts @@ -98,7 +98,7 @@ export { setPageMeta, getEnterOptionsSync, getLaunchOptionsSync, - getPushCid, + getPushClientid, onPushMessage, offPushMessage, onAppHide, diff --git a/packages/uni-mp-alipay/dist/uni.api.esm.js b/packages/uni-mp-alipay/dist/uni.api.esm.js index a6a3ab7440b023810e2e6983411ba574bce5d99c..c04c9f67c1755eabf94b709d170d987de7ecbfe9 100644 --- a/packages/uni-mp-alipay/dist/uni.api.esm.js +++ b/packages/uni-mp-alipay/dist/uni.api.esm.js @@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) { }); getPushCidCallbacks.length = 0; } -function getPushCid(args) { +function getPushClientid(args) { if (!isPlainObject(args)) { args = {}; } @@ -592,11 +592,11 @@ function getPushCid(args) { getPushCidCallbacks.push((cid, errMsg) => { let res; if (cid) { - res = { errMsg: 'getPushCid:ok', cid }; + res = { errMsg: 'getPushClientid:ok', cid }; hasSuccess && success(res); } else { - res = { errMsg: 'getPushCid:fail' + (errMsg ? ' ' + errMsg : '') }; + res = { errMsg: 'getPushClientid:fail' + (errMsg ? ' ' + errMsg : '') }; hasFail && fail(res); } hasComplete && complete(res); @@ -813,7 +813,7 @@ const baseApis = { getLocale, setLocale, onLocaleChange, - getPushCid, + getPushClientid, onPushMessage, offPushMessage, invokePushCallback, diff --git a/packages/uni-mp-baidu/dist/uni.api.esm.js b/packages/uni-mp-baidu/dist/uni.api.esm.js index 68eba20c2053a0f18cd63f9ddee949233721b199..f2bad3182be26c5f41676003e58c7ab3747b36e7 100644 --- a/packages/uni-mp-baidu/dist/uni.api.esm.js +++ b/packages/uni-mp-baidu/dist/uni.api.esm.js @@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) { }); getPushCidCallbacks.length = 0; } -function getPushCid(args) { +function getPushClientid(args) { if (!isPlainObject(args)) { args = {}; } @@ -592,11 +592,11 @@ function getPushCid(args) { getPushCidCallbacks.push((cid, errMsg) => { let res; if (cid) { - res = { errMsg: 'getPushCid:ok', cid }; + res = { errMsg: 'getPushClientid:ok', cid }; hasSuccess && success(res); } else { - res = { errMsg: 'getPushCid:fail' + (errMsg ? ' ' + errMsg : '') }; + res = { errMsg: 'getPushClientid:fail' + (errMsg ? ' ' + errMsg : '') }; hasFail && fail(res); } hasComplete && complete(res); @@ -813,7 +813,7 @@ const baseApis = { getLocale, setLocale, onLocaleChange, - getPushCid, + getPushClientid, onPushMessage, offPushMessage, invokePushCallback, diff --git a/packages/uni-mp-core/src/api/index.ts b/packages/uni-mp-core/src/api/index.ts index 9b2e3debd06b60aacfb9afbcaf5df016062710ae..e13ec110578a88b5ea22831478df3745262bf2bc 100644 --- a/packages/uni-mp-core/src/api/index.ts +++ b/packages/uni-mp-core/src/api/index.ts @@ -13,7 +13,7 @@ import { $emit, } from '@dcloudio/uni-api/src/service/base/eventBus' import { - getPushCid, + getPushClientid, onPushMessage, offPushMessage, invokePushCallback, @@ -40,7 +40,7 @@ const baseApis = { getLocale, setLocale, onLocaleChange, - getPushCid, + getPushClientid, onPushMessage, offPushMessage, invokePushCallback, diff --git a/packages/uni-mp-kuaishou/dist/uni.api.esm.js b/packages/uni-mp-kuaishou/dist/uni.api.esm.js index cb5e8c4c8f0d5bbabe6dcb74c9e4587fb982f02f..d992370db81da9bb5c6823d4efa64da0dc2f6e24 100644 --- a/packages/uni-mp-kuaishou/dist/uni.api.esm.js +++ b/packages/uni-mp-kuaishou/dist/uni.api.esm.js @@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) { }); getPushCidCallbacks.length = 0; } -function getPushCid(args) { +function getPushClientid(args) { if (!isPlainObject(args)) { args = {}; } @@ -592,11 +592,11 @@ function getPushCid(args) { getPushCidCallbacks.push((cid, errMsg) => { let res; if (cid) { - res = { errMsg: 'getPushCid:ok', cid }; + res = { errMsg: 'getPushClientid:ok', cid }; hasSuccess && success(res); } else { - res = { errMsg: 'getPushCid:fail' + (errMsg ? ' ' + errMsg : '') }; + res = { errMsg: 'getPushClientid:fail' + (errMsg ? ' ' + errMsg : '') }; hasFail && fail(res); } hasComplete && complete(res); @@ -813,7 +813,7 @@ const baseApis = { getLocale, setLocale, onLocaleChange, - getPushCid, + getPushClientid, onPushMessage, offPushMessage, invokePushCallback, diff --git a/packages/uni-mp-lark/dist/uni.api.esm.js b/packages/uni-mp-lark/dist/uni.api.esm.js index 4047e95c0ff9d13796f73be5d798ca78a7d04195..483729163f2c230a7c262a07f9125af264cf909d 100644 --- a/packages/uni-mp-lark/dist/uni.api.esm.js +++ b/packages/uni-mp-lark/dist/uni.api.esm.js @@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) { }); getPushCidCallbacks.length = 0; } -function getPushCid(args) { +function getPushClientid(args) { if (!isPlainObject(args)) { args = {}; } @@ -592,11 +592,11 @@ function getPushCid(args) { getPushCidCallbacks.push((cid, errMsg) => { let res; if (cid) { - res = { errMsg: 'getPushCid:ok', cid }; + res = { errMsg: 'getPushClientid:ok', cid }; hasSuccess && success(res); } else { - res = { errMsg: 'getPushCid:fail' + (errMsg ? ' ' + errMsg : '') }; + res = { errMsg: 'getPushClientid:fail' + (errMsg ? ' ' + errMsg : '') }; hasFail && fail(res); } hasComplete && complete(res); @@ -813,7 +813,7 @@ const baseApis = { getLocale, setLocale, onLocaleChange, - getPushCid, + getPushClientid, onPushMessage, offPushMessage, invokePushCallback, diff --git a/packages/uni-mp-qq/dist/uni.api.esm.js b/packages/uni-mp-qq/dist/uni.api.esm.js index d108f260995a0988aa707dc65550af5b9410bab0..428669001a0be51adbe6838db109c91fc7ef8f30 100644 --- a/packages/uni-mp-qq/dist/uni.api.esm.js +++ b/packages/uni-mp-qq/dist/uni.api.esm.js @@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) { }); getPushCidCallbacks.length = 0; } -function getPushCid(args) { +function getPushClientid(args) { if (!isPlainObject(args)) { args = {}; } @@ -592,11 +592,11 @@ function getPushCid(args) { getPushCidCallbacks.push((cid, errMsg) => { let res; if (cid) { - res = { errMsg: 'getPushCid:ok', cid }; + res = { errMsg: 'getPushClientid:ok', cid }; hasSuccess && success(res); } else { - res = { errMsg: 'getPushCid:fail' + (errMsg ? ' ' + errMsg : '') }; + res = { errMsg: 'getPushClientid:fail' + (errMsg ? ' ' + errMsg : '') }; hasFail && fail(res); } hasComplete && complete(res); @@ -813,7 +813,7 @@ const baseApis = { getLocale, setLocale, onLocaleChange, - getPushCid, + getPushClientid, onPushMessage, offPushMessage, invokePushCallback, diff --git a/packages/uni-mp-toutiao/dist/uni.api.esm.js b/packages/uni-mp-toutiao/dist/uni.api.esm.js index b7a5112762191368cf9f824e4e5261a417835865..fa72bf4d12ab17f8cdadbc6a529522ed24d25f1a 100644 --- a/packages/uni-mp-toutiao/dist/uni.api.esm.js +++ b/packages/uni-mp-toutiao/dist/uni.api.esm.js @@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) { }); getPushCidCallbacks.length = 0; } -function getPushCid(args) { +function getPushClientid(args) { if (!isPlainObject(args)) { args = {}; } @@ -592,11 +592,11 @@ function getPushCid(args) { getPushCidCallbacks.push((cid, errMsg) => { let res; if (cid) { - res = { errMsg: 'getPushCid:ok', cid }; + res = { errMsg: 'getPushClientid:ok', cid }; hasSuccess && success(res); } else { - res = { errMsg: 'getPushCid:fail' + (errMsg ? ' ' + errMsg : '') }; + res = { errMsg: 'getPushClientid:fail' + (errMsg ? ' ' + errMsg : '') }; hasFail && fail(res); } hasComplete && complete(res); @@ -813,7 +813,7 @@ const baseApis = { getLocale, setLocale, onLocaleChange, - getPushCid, + getPushClientid, onPushMessage, offPushMessage, invokePushCallback, diff --git a/packages/uni-mp-weixin/dist/uni.api.esm.js b/packages/uni-mp-weixin/dist/uni.api.esm.js index 270eba3fbc219ba7d7f3d83a5ae515780efc9dc7..d6f32558b3cc3a5576c2b29b713c61491cd972f9 100644 --- a/packages/uni-mp-weixin/dist/uni.api.esm.js +++ b/packages/uni-mp-weixin/dist/uni.api.esm.js @@ -545,7 +545,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) { }); getPushCidCallbacks.length = 0; } -function getPushCid(args) { +function getPushClientid(args) { if (!isPlainObject(args)) { args = {}; } @@ -556,11 +556,11 @@ function getPushCid(args) { getPushCidCallbacks.push((cid, errMsg) => { let res; if (cid) { - res = { errMsg: 'getPushCid:ok', cid }; + res = { errMsg: 'getPushClientid:ok', cid }; hasSuccess && success(res); } else { - res = { errMsg: 'getPushCid:fail' + (errMsg ? ' ' + errMsg : '') }; + res = { errMsg: 'getPushClientid:fail' + (errMsg ? ' ' + errMsg : '') }; hasFail && fail(res); } hasComplete && complete(res); @@ -777,7 +777,7 @@ const baseApis = { getLocale, setLocale, onLocaleChange, - getPushCid, + getPushClientid, onPushMessage, offPushMessage, invokePushCallback, diff --git a/packages/uni-quickapp-webview/dist/uni.api.esm.js b/packages/uni-quickapp-webview/dist/uni.api.esm.js index 5d61fcb4f26d0c3f71fea5ea533c67bedaea7e24..ee92bf998151a4aa3e200a92482089b9a83a7459 100644 --- a/packages/uni-quickapp-webview/dist/uni.api.esm.js +++ b/packages/uni-quickapp-webview/dist/uni.api.esm.js @@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) { }); getPushCidCallbacks.length = 0; } -function getPushCid(args) { +function getPushClientid(args) { if (!isPlainObject(args)) { args = {}; } @@ -592,11 +592,11 @@ function getPushCid(args) { getPushCidCallbacks.push((cid, errMsg) => { let res; if (cid) { - res = { errMsg: 'getPushCid:ok', cid }; + res = { errMsg: 'getPushClientid:ok', cid }; hasSuccess && success(res); } else { - res = { errMsg: 'getPushCid:fail' + (errMsg ? ' ' + errMsg : '') }; + res = { errMsg: 'getPushClientid:fail' + (errMsg ? ' ' + errMsg : '') }; hasFail && fail(res); } hasComplete && complete(res); @@ -813,7 +813,7 @@ const baseApis = { getLocale, setLocale, onLocaleChange, - getPushCid, + getPushClientid, onPushMessage, offPushMessage, invokePushCallback,