Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qianlong66
uni-app
提交
60bd85ff
U
uni-app
项目概览
qianlong66
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
60bd85ff
编写于
5月 26, 2022
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(push): getPushCid => getPushClientid
上级
54583394
变更
17
显示空白变更内容
内联
并排
Showing
17 changed file
with
51 addition
and
51 deletion
+51
-51
packages/playground/uts/unpackage/nativeplugins/test-uniplugin/android/src/io/dcloud/uniplugin/log.kt.map
...test-uniplugin/android/src/io/dcloud/uniplugin/log.kt.map
+1
-1
packages/playground/uts/unpackage/nativeplugins/test-uniplugin/android/src/test.kt.map
...kage/nativeplugins/test-uniplugin/android/src/test.kt.map
+1
-1
packages/uni-api/src/service/plugin/push.ts
packages/uni-api/src/service/plugin/push.ts
+3
-3
packages/uni-app-plus/dist/uni.runtime.esm.js
packages/uni-app-plus/dist/uni.runtime.esm.js
+4
-4
packages/uni-app-plus/src/service/api/index.ts
packages/uni-app-plus/src/service/api/index.ts
+1
-1
packages/uni-h5-vite/lib/api.json
packages/uni-h5-vite/lib/api.json
+1
-1
packages/uni-h5/dist/uni-h5.es.js
packages/uni-h5/dist/uni-h5.es.js
+5
-5
packages/uni-h5/src/service/api/index.ts
packages/uni-h5/src/service/api/index.ts
+1
-1
packages/uni-mp-alipay/dist/uni.api.esm.js
packages/uni-mp-alipay/dist/uni.api.esm.js
+4
-4
packages/uni-mp-baidu/dist/uni.api.esm.js
packages/uni-mp-baidu/dist/uni.api.esm.js
+4
-4
packages/uni-mp-core/src/api/index.ts
packages/uni-mp-core/src/api/index.ts
+2
-2
packages/uni-mp-kuaishou/dist/uni.api.esm.js
packages/uni-mp-kuaishou/dist/uni.api.esm.js
+4
-4
packages/uni-mp-lark/dist/uni.api.esm.js
packages/uni-mp-lark/dist/uni.api.esm.js
+4
-4
packages/uni-mp-qq/dist/uni.api.esm.js
packages/uni-mp-qq/dist/uni.api.esm.js
+4
-4
packages/uni-mp-toutiao/dist/uni.api.esm.js
packages/uni-mp-toutiao/dist/uni.api.esm.js
+4
-4
packages/uni-mp-weixin/dist/uni.api.esm.js
packages/uni-mp-weixin/dist/uni.api.esm.js
+4
-4
packages/uni-quickapp-webview/dist/uni.api.esm.js
packages/uni-quickapp-webview/dist/uni.api.esm.js
+4
-4
未找到文件。
packages/playground/uts/unpackage/nativeplugins/test-uniplugin/android/src/io/dcloud/uniplugin/log.kt.map
浏览文件 @
60bd85ff
{"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"}
{"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
\ No newline at end of file
packages/playground/uts/unpackage/nativeplugins/test-uniplugin/android/src/test.kt.map
浏览文件 @
60bd85ff
{"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"}
{"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
\ No newline at end of file
packages/uni-api/src/service/plugin/push.ts
浏览文件 @
60bd85ff
...
@@ -75,7 +75,7 @@ function invokeGetPushCidCallbacks(cid?: string, errMsg?: string) {
...
@@ -75,7 +75,7 @@ function invokeGetPushCidCallbacks(cid?: string, errMsg?: string) {
getPushCidCallbacks
.
length
=
0
getPushCidCallbacks
.
length
=
0
}
}
export
function
getPushCid
(
args
:
GetPushCidOptions
)
{
export
function
getPushC
lient
id
(
args
:
GetPushCidOptions
)
{
if
(
!
isPlainObject
(
args
))
{
if
(
!
isPlainObject
(
args
))
{
args
=
{}
args
=
{}
}
}
...
@@ -86,10 +86,10 @@ export function getPushCid(args: GetPushCidOptions) {
...
@@ -86,10 +86,10 @@ export function getPushCid(args: GetPushCidOptions) {
getPushCidCallbacks
.
push
((
cid
?:
string
,
errMsg
?:
string
)
=>
{
getPushCidCallbacks
.
push
((
cid
?:
string
,
errMsg
?:
string
)
=>
{
let
res
:
Record
<
string
,
unknown
>
let
res
:
Record
<
string
,
unknown
>
if
(
cid
)
{
if
(
cid
)
{
res
=
{
errMsg
:
'
getPushCid:ok
'
,
cid
}
res
=
{
errMsg
:
'
getPushC
lient
id:ok
'
,
cid
}
hasSuccess
&&
success
(
res
)
hasSuccess
&&
success
(
res
)
}
else
{
}
else
{
res
=
{
errMsg
:
'
getPushCid:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
}
res
=
{
errMsg
:
'
getPushC
lient
id:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
}
hasFail
&&
fail
(
res
)
hasFail
&&
fail
(
res
)
}
}
hasComplete
&&
complete
(
res
)
hasComplete
&&
complete
(
res
)
...
...
packages/uni-app-plus/dist/uni.runtime.esm.js
浏览文件 @
60bd85ff
...
@@ -11098,7 +11098,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
...
@@ -11098,7 +11098,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
});
});
getPushCidCallbacks.length = 0;
getPushCidCallbacks.length = 0;
}
}
function getPushCid(args) {
function getPushC
lient
id(args) {
if (!isPlainObject(args)) {
if (!isPlainObject(args)) {
args = {};
args = {};
}
}
...
@@ -11109,11 +11109,11 @@ function getPushCid(args) {
...
@@ -11109,11 +11109,11 @@ function getPushCid(args) {
getPushCidCallbacks.push((cid, errMsg) => {
getPushCidCallbacks.push((cid, errMsg) => {
let res;
let res;
if (cid) {
if (cid) {
res = { errMsg: 'getPushCid:ok', cid };
res = { errMsg: 'getPushC
lient
id:ok', cid };
hasSuccess && success(res);
hasSuccess && success(res);
}
}
else {
else {
res = { errMsg: 'getPushCid:fail' + (errMsg ? ' ' + errMsg : '') };
res = { errMsg: 'getPushC
lient
id:fail' + (errMsg ? ' ' + errMsg : '') };
hasFail && fail(res);
hasFail && fail(res);
}
}
hasComplete && complete(res);
hasComplete && complete(res);
...
@@ -19054,7 +19054,7 @@ var uni$1 = {
...
@@ -19054,7 +19054,7 @@ var uni$1 = {
setPageMeta: setPageMeta,
setPageMeta: setPageMeta,
getEnterOptionsSync: getEnterOptionsSync,
getEnterOptionsSync: getEnterOptionsSync,
getLaunchOptionsSync: getLaunchOptionsSync,
getLaunchOptionsSync: getLaunchOptionsSync,
getPushC
id: getPushC
id,
getPushC
lientid: getPushClient
id,
onPushMessage: onPushMessage,
onPushMessage: onPushMessage,
offPushMessage: offPushMessage,
offPushMessage: offPushMessage,
onAppHide: onAppHide,
onAppHide: onAppHide,
...
...
packages/uni-app-plus/src/service/api/index.ts
浏览文件 @
60bd85ff
...
@@ -121,7 +121,7 @@ export {
...
@@ -121,7 +121,7 @@ export {
setPageMeta
,
setPageMeta
,
getEnterOptionsSync
,
getEnterOptionsSync
,
getLaunchOptionsSync
,
getLaunchOptionsSync
,
getPushCid
,
getPushC
lient
id
,
onPushMessage
,
onPushMessage
,
offPushMessage
,
offPushMessage
,
onAppHide
,
onAppHide
,
...
...
packages/uni-h5-vite/lib/api.json
浏览文件 @
60bd85ff
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
"getLocation"
,
"getLocation"
,
"getNetworkType"
,
"getNetworkType"
,
"getProvider"
,
"getProvider"
,
"getPushCid"
,
"getPushC
lient
id"
,
"getRealPath"
,
"getRealPath"
,
"getRecorderManager"
,
"getRecorderManager"
,
"getRightWindowStyle"
,
"getRightWindowStyle"
,
...
...
packages/uni-h5/dist/uni-h5.es.js
浏览文件 @
60bd85ff
...
@@ -4599,7 +4599,7 @@ function invokeGetPushCidCallbacks(cid2, errMsg) {
...
@@ -4599,7 +4599,7 @@ function invokeGetPushCidCallbacks(cid2, errMsg) {
});
});
getPushCidCallbacks.length = 0;
getPushCidCallbacks.length = 0;
}
}
function getPushCid(args) {
function getPushC
lient
id(args) {
if (!isPlainObject(args)) {
if (!isPlainObject(args)) {
args = {};
args = {};
}
}
...
@@ -4610,10 +4610,10 @@ function getPushCid(args) {
...
@@ -4610,10 +4610,10 @@ function getPushCid(args) {
getPushCidCallbacks.push((cid2, errMsg) => {
getPushCidCallbacks.push((cid2, errMsg) => {
let res;
let res;
if (cid2) {
if (cid2) {
res = { errMsg: "getPushCid:ok", cid: cid2 };
res = { errMsg: "getPushC
lient
id:ok", cid: cid2 };
hasSuccess && success(res);
hasSuccess && success(res);
} else {
} else {
res = { errMsg: "getPushCid:fail" + (errMsg ? " " + errMsg : "") };
res = { errMsg: "getPushC
lient
id:fail" + (errMsg ? " " + errMsg : "") };
hasFail && fail(res);
hasFail && fail(res);
}
}
hasComplete && complete(res);
hasComplete && complete(res);
...
@@ -20282,7 +20282,7 @@ var api = /* @__PURE__ */ Object.defineProperty({
...
@@ -20282,7 +20282,7 @@ var api = /* @__PURE__ */ Object.defineProperty({
setPageMeta,
setPageMeta,
getEnterOptionsSync,
getEnterOptionsSync,
getLaunchOptionsSync,
getLaunchOptionsSync,
getPushCid,
getPushC
lient
id,
onPushMessage,
onPushMessage,
offPushMessage,
offPushMessage,
onAppHide,
onAppHide,
...
@@ -22528,4 +22528,4 @@ var index = /* @__PURE__ */ defineSystemComponent({
...
@@ -22528,4 +22528,4 @@ var index = /* @__PURE__ */ defineSystemComponent({
return openBlock(), createBlock("div", clazz, [loadingVNode]);
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, getPushC
lient
id, 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 };
packages/uni-h5/src/service/api/index.ts
浏览文件 @
60bd85ff
...
@@ -98,7 +98,7 @@ export {
...
@@ -98,7 +98,7 @@ export {
setPageMeta
,
setPageMeta
,
getEnterOptionsSync
,
getEnterOptionsSync
,
getLaunchOptionsSync
,
getLaunchOptionsSync
,
getPushCid
,
getPushC
lient
id
,
onPushMessage
,
onPushMessage
,
offPushMessage
,
offPushMessage
,
onAppHide
,
onAppHide
,
...
...
packages/uni-mp-alipay/dist/uni.api.esm.js
浏览文件 @
60bd85ff
...
@@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
...
@@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
});
});
getPushCidCallbacks
.
length
=
0
;
getPushCidCallbacks
.
length
=
0
;
}
}
function
getPushCid
(
args
)
{
function
getPushC
lient
id
(
args
)
{
if
(
!
isPlainObject
(
args
))
{
if
(
!
isPlainObject
(
args
))
{
args
=
{};
args
=
{};
}
}
...
@@ -592,11 +592,11 @@ function getPushCid(args) {
...
@@ -592,11 +592,11 @@ function getPushCid(args) {
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
let
res
;
let
res
;
if
(
cid
)
{
if
(
cid
)
{
res
=
{
errMsg
:
'
getPushCid:ok
'
,
cid
};
res
=
{
errMsg
:
'
getPushC
lient
id:ok
'
,
cid
};
hasSuccess
&&
success
(
res
);
hasSuccess
&&
success
(
res
);
}
}
else
{
else
{
res
=
{
errMsg
:
'
getPushCid:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
res
=
{
errMsg
:
'
getPushC
lient
id:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
hasFail
&&
fail
(
res
);
hasFail
&&
fail
(
res
);
}
}
hasComplete
&&
complete
(
res
);
hasComplete
&&
complete
(
res
);
...
@@ -813,7 +813,7 @@ const baseApis = {
...
@@ -813,7 +813,7 @@ const baseApis = {
getLocale
,
getLocale
,
setLocale
,
setLocale
,
onLocaleChange
,
onLocaleChange
,
getPushCid
,
getPushC
lient
id
,
onPushMessage
,
onPushMessage
,
offPushMessage
,
offPushMessage
,
invokePushCallback
,
invokePushCallback
,
...
...
packages/uni-mp-baidu/dist/uni.api.esm.js
浏览文件 @
60bd85ff
...
@@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
...
@@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
});
});
getPushCidCallbacks
.
length
=
0
;
getPushCidCallbacks
.
length
=
0
;
}
}
function
getPushCid
(
args
)
{
function
getPushC
lient
id
(
args
)
{
if
(
!
isPlainObject
(
args
))
{
if
(
!
isPlainObject
(
args
))
{
args
=
{};
args
=
{};
}
}
...
@@ -592,11 +592,11 @@ function getPushCid(args) {
...
@@ -592,11 +592,11 @@ function getPushCid(args) {
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
let
res
;
let
res
;
if
(
cid
)
{
if
(
cid
)
{
res
=
{
errMsg
:
'
getPushCid:ok
'
,
cid
};
res
=
{
errMsg
:
'
getPushC
lient
id:ok
'
,
cid
};
hasSuccess
&&
success
(
res
);
hasSuccess
&&
success
(
res
);
}
}
else
{
else
{
res
=
{
errMsg
:
'
getPushCid:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
res
=
{
errMsg
:
'
getPushC
lient
id:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
hasFail
&&
fail
(
res
);
hasFail
&&
fail
(
res
);
}
}
hasComplete
&&
complete
(
res
);
hasComplete
&&
complete
(
res
);
...
@@ -813,7 +813,7 @@ const baseApis = {
...
@@ -813,7 +813,7 @@ const baseApis = {
getLocale
,
getLocale
,
setLocale
,
setLocale
,
onLocaleChange
,
onLocaleChange
,
getPushCid
,
getPushC
lient
id
,
onPushMessage
,
onPushMessage
,
offPushMessage
,
offPushMessage
,
invokePushCallback
,
invokePushCallback
,
...
...
packages/uni-mp-core/src/api/index.ts
浏览文件 @
60bd85ff
...
@@ -13,7 +13,7 @@ import {
...
@@ -13,7 +13,7 @@ import {
$emit
,
$emit
,
}
from
'
@dcloudio/uni-api/src/service/base/eventBus
'
}
from
'
@dcloudio/uni-api/src/service/base/eventBus
'
import
{
import
{
getPushCid
,
getPushC
lient
id
,
onPushMessage
,
onPushMessage
,
offPushMessage
,
offPushMessage
,
invokePushCallback
,
invokePushCallback
,
...
@@ -40,7 +40,7 @@ const baseApis = {
...
@@ -40,7 +40,7 @@ const baseApis = {
getLocale
,
getLocale
,
setLocale
,
setLocale
,
onLocaleChange
,
onLocaleChange
,
getPushCid
,
getPushC
lient
id
,
onPushMessage
,
onPushMessage
,
offPushMessage
,
offPushMessage
,
invokePushCallback
,
invokePushCallback
,
...
...
packages/uni-mp-kuaishou/dist/uni.api.esm.js
浏览文件 @
60bd85ff
...
@@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
...
@@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
});
});
getPushCidCallbacks
.
length
=
0
;
getPushCidCallbacks
.
length
=
0
;
}
}
function
getPushCid
(
args
)
{
function
getPushC
lient
id
(
args
)
{
if
(
!
isPlainObject
(
args
))
{
if
(
!
isPlainObject
(
args
))
{
args
=
{};
args
=
{};
}
}
...
@@ -592,11 +592,11 @@ function getPushCid(args) {
...
@@ -592,11 +592,11 @@ function getPushCid(args) {
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
let
res
;
let
res
;
if
(
cid
)
{
if
(
cid
)
{
res
=
{
errMsg
:
'
getPushCid:ok
'
,
cid
};
res
=
{
errMsg
:
'
getPushC
lient
id:ok
'
,
cid
};
hasSuccess
&&
success
(
res
);
hasSuccess
&&
success
(
res
);
}
}
else
{
else
{
res
=
{
errMsg
:
'
getPushCid:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
res
=
{
errMsg
:
'
getPushC
lient
id:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
hasFail
&&
fail
(
res
);
hasFail
&&
fail
(
res
);
}
}
hasComplete
&&
complete
(
res
);
hasComplete
&&
complete
(
res
);
...
@@ -813,7 +813,7 @@ const baseApis = {
...
@@ -813,7 +813,7 @@ const baseApis = {
getLocale
,
getLocale
,
setLocale
,
setLocale
,
onLocaleChange
,
onLocaleChange
,
getPushCid
,
getPushC
lient
id
,
onPushMessage
,
onPushMessage
,
offPushMessage
,
offPushMessage
,
invokePushCallback
,
invokePushCallback
,
...
...
packages/uni-mp-lark/dist/uni.api.esm.js
浏览文件 @
60bd85ff
...
@@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
...
@@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
});
});
getPushCidCallbacks
.
length
=
0
;
getPushCidCallbacks
.
length
=
0
;
}
}
function
getPushCid
(
args
)
{
function
getPushC
lient
id
(
args
)
{
if
(
!
isPlainObject
(
args
))
{
if
(
!
isPlainObject
(
args
))
{
args
=
{};
args
=
{};
}
}
...
@@ -592,11 +592,11 @@ function getPushCid(args) {
...
@@ -592,11 +592,11 @@ function getPushCid(args) {
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
let
res
;
let
res
;
if
(
cid
)
{
if
(
cid
)
{
res
=
{
errMsg
:
'
getPushCid:ok
'
,
cid
};
res
=
{
errMsg
:
'
getPushC
lient
id:ok
'
,
cid
};
hasSuccess
&&
success
(
res
);
hasSuccess
&&
success
(
res
);
}
}
else
{
else
{
res
=
{
errMsg
:
'
getPushCid:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
res
=
{
errMsg
:
'
getPushC
lient
id:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
hasFail
&&
fail
(
res
);
hasFail
&&
fail
(
res
);
}
}
hasComplete
&&
complete
(
res
);
hasComplete
&&
complete
(
res
);
...
@@ -813,7 +813,7 @@ const baseApis = {
...
@@ -813,7 +813,7 @@ const baseApis = {
getLocale
,
getLocale
,
setLocale
,
setLocale
,
onLocaleChange
,
onLocaleChange
,
getPushCid
,
getPushC
lient
id
,
onPushMessage
,
onPushMessage
,
offPushMessage
,
offPushMessage
,
invokePushCallback
,
invokePushCallback
,
...
...
packages/uni-mp-qq/dist/uni.api.esm.js
浏览文件 @
60bd85ff
...
@@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
...
@@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
});
});
getPushCidCallbacks
.
length
=
0
;
getPushCidCallbacks
.
length
=
0
;
}
}
function
getPushCid
(
args
)
{
function
getPushC
lient
id
(
args
)
{
if
(
!
isPlainObject
(
args
))
{
if
(
!
isPlainObject
(
args
))
{
args
=
{};
args
=
{};
}
}
...
@@ -592,11 +592,11 @@ function getPushCid(args) {
...
@@ -592,11 +592,11 @@ function getPushCid(args) {
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
let
res
;
let
res
;
if
(
cid
)
{
if
(
cid
)
{
res
=
{
errMsg
:
'
getPushCid:ok
'
,
cid
};
res
=
{
errMsg
:
'
getPushC
lient
id:ok
'
,
cid
};
hasSuccess
&&
success
(
res
);
hasSuccess
&&
success
(
res
);
}
}
else
{
else
{
res
=
{
errMsg
:
'
getPushCid:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
res
=
{
errMsg
:
'
getPushC
lient
id:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
hasFail
&&
fail
(
res
);
hasFail
&&
fail
(
res
);
}
}
hasComplete
&&
complete
(
res
);
hasComplete
&&
complete
(
res
);
...
@@ -813,7 +813,7 @@ const baseApis = {
...
@@ -813,7 +813,7 @@ const baseApis = {
getLocale
,
getLocale
,
setLocale
,
setLocale
,
onLocaleChange
,
onLocaleChange
,
getPushCid
,
getPushC
lient
id
,
onPushMessage
,
onPushMessage
,
offPushMessage
,
offPushMessage
,
invokePushCallback
,
invokePushCallback
,
...
...
packages/uni-mp-toutiao/dist/uni.api.esm.js
浏览文件 @
60bd85ff
...
@@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
...
@@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
});
});
getPushCidCallbacks
.
length
=
0
;
getPushCidCallbacks
.
length
=
0
;
}
}
function
getPushCid
(
args
)
{
function
getPushC
lient
id
(
args
)
{
if
(
!
isPlainObject
(
args
))
{
if
(
!
isPlainObject
(
args
))
{
args
=
{};
args
=
{};
}
}
...
@@ -592,11 +592,11 @@ function getPushCid(args) {
...
@@ -592,11 +592,11 @@ function getPushCid(args) {
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
let
res
;
let
res
;
if
(
cid
)
{
if
(
cid
)
{
res
=
{
errMsg
:
'
getPushCid:ok
'
,
cid
};
res
=
{
errMsg
:
'
getPushC
lient
id:ok
'
,
cid
};
hasSuccess
&&
success
(
res
);
hasSuccess
&&
success
(
res
);
}
}
else
{
else
{
res
=
{
errMsg
:
'
getPushCid:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
res
=
{
errMsg
:
'
getPushC
lient
id:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
hasFail
&&
fail
(
res
);
hasFail
&&
fail
(
res
);
}
}
hasComplete
&&
complete
(
res
);
hasComplete
&&
complete
(
res
);
...
@@ -813,7 +813,7 @@ const baseApis = {
...
@@ -813,7 +813,7 @@ const baseApis = {
getLocale
,
getLocale
,
setLocale
,
setLocale
,
onLocaleChange
,
onLocaleChange
,
getPushCid
,
getPushC
lient
id
,
onPushMessage
,
onPushMessage
,
offPushMessage
,
offPushMessage
,
invokePushCallback
,
invokePushCallback
,
...
...
packages/uni-mp-weixin/dist/uni.api.esm.js
浏览文件 @
60bd85ff
...
@@ -545,7 +545,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
...
@@ -545,7 +545,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
});
});
getPushCidCallbacks
.
length
=
0
;
getPushCidCallbacks
.
length
=
0
;
}
}
function
getPushCid
(
args
)
{
function
getPushC
lient
id
(
args
)
{
if
(
!
isPlainObject
(
args
))
{
if
(
!
isPlainObject
(
args
))
{
args
=
{};
args
=
{};
}
}
...
@@ -556,11 +556,11 @@ function getPushCid(args) {
...
@@ -556,11 +556,11 @@ function getPushCid(args) {
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
let
res
;
let
res
;
if
(
cid
)
{
if
(
cid
)
{
res
=
{
errMsg
:
'
getPushCid:ok
'
,
cid
};
res
=
{
errMsg
:
'
getPushC
lient
id:ok
'
,
cid
};
hasSuccess
&&
success
(
res
);
hasSuccess
&&
success
(
res
);
}
}
else
{
else
{
res
=
{
errMsg
:
'
getPushCid:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
res
=
{
errMsg
:
'
getPushC
lient
id:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
hasFail
&&
fail
(
res
);
hasFail
&&
fail
(
res
);
}
}
hasComplete
&&
complete
(
res
);
hasComplete
&&
complete
(
res
);
...
@@ -777,7 +777,7 @@ const baseApis = {
...
@@ -777,7 +777,7 @@ const baseApis = {
getLocale
,
getLocale
,
setLocale
,
setLocale
,
onLocaleChange
,
onLocaleChange
,
getPushCid
,
getPushC
lient
id
,
onPushMessage
,
onPushMessage
,
offPushMessage
,
offPushMessage
,
invokePushCallback
,
invokePushCallback
,
...
...
packages/uni-quickapp-webview/dist/uni.api.esm.js
浏览文件 @
60bd85ff
...
@@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
...
@@ -581,7 +581,7 @@ function invokeGetPushCidCallbacks(cid, errMsg) {
});
});
getPushCidCallbacks
.
length
=
0
;
getPushCidCallbacks
.
length
=
0
;
}
}
function
getPushCid
(
args
)
{
function
getPushC
lient
id
(
args
)
{
if
(
!
isPlainObject
(
args
))
{
if
(
!
isPlainObject
(
args
))
{
args
=
{};
args
=
{};
}
}
...
@@ -592,11 +592,11 @@ function getPushCid(args) {
...
@@ -592,11 +592,11 @@ function getPushCid(args) {
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
getPushCidCallbacks
.
push
((
cid
,
errMsg
)
=>
{
let
res
;
let
res
;
if
(
cid
)
{
if
(
cid
)
{
res
=
{
errMsg
:
'
getPushCid:ok
'
,
cid
};
res
=
{
errMsg
:
'
getPushC
lient
id:ok
'
,
cid
};
hasSuccess
&&
success
(
res
);
hasSuccess
&&
success
(
res
);
}
}
else
{
else
{
res
=
{
errMsg
:
'
getPushCid:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
res
=
{
errMsg
:
'
getPushC
lient
id:fail
'
+
(
errMsg
?
'
'
+
errMsg
:
''
)
};
hasFail
&&
fail
(
res
);
hasFail
&&
fail
(
res
);
}
}
hasComplete
&&
complete
(
res
);
hasComplete
&&
complete
(
res
);
...
@@ -813,7 +813,7 @@ const baseApis = {
...
@@ -813,7 +813,7 @@ const baseApis = {
getLocale
,
getLocale
,
setLocale
,
setLocale
,
onLocaleChange
,
onLocaleChange
,
getPushCid
,
getPushC
lient
id
,
onPushMessage
,
onPushMessage
,
offPushMessage
,
offPushMessage
,
invokePushCallback
,
invokePushCallback
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录