
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
@alipay-inc/mpaas-mcdp-wx-render
Advanced tools
包名:@alipay-inc/mpaas-mcdp-wx-render 类型:公共类库 适用场景:微信小程序 功能简介:支持在微信小程序进行弹屏、公告、轮播(banner)、浮标四种类型的展位投放,和个性化广告投放能力。
npm install @alipay-inc/mpaas-mcdp-wx-render
import McdpView from '@alipay-inc/mpaas-mcdp-wx-render';
McdpView.init({
appId: 'my-appId', // 必传
workspaceId: 'my-workspaceId', // 必传
reportURL: 'my-url' // 必传
uploadURL: 'my-url' // 必传
})
{
"usingComponents": {
"rotation": "../../miniprogram_npm/@alipay-inc/mpaas-mcdp-wx-render/rotation/rotation"
}
}
<rotation mcdpCode="my-code"></rotation>
{
"pages":[
"pages/index/index",
"pages/webview/webview"
]
}
<rotation webviewPath="/pages/webview/webview" mcdpCode="my-code"></rotation>
<web-view src="{{url}}"></web-view>
Page({
data: {
url: ''
},
onLoad(query) {
this.setData({ url: query.url });
},
})
小程序不内置跳转地会默认在当前页面打开web-view,右上角有关闭按钮(微信IDE不显示)
| 属性名 | 类型 | 必填 | 默认值 | 说明 | 备注 |
|---|---|---|---|---|---|
| appId | string | 是 | - | 展位应用ID | 获取展位信息必需 |
| workspaceId | string | 是 | - | 展位工作控件ID | 获取展位信息必需 |
| reportURL | string | 是 | - | 请求路径host | 获取展位信息必需 |
| uploadURL | string | 是 | - | 埋点上报数据host | 埋点上报数据必需 |
| 广告类型 | 属性名 | 类型 | 必填 | 默认值 | 说明 | 备注 |
|---|---|---|---|---|---|---|
| totation (轮播) | mcdpCode | string | 是 | - | 展位码应用ID | 获取展位信息必需 |
| webviewPath | string | 否 | - | 跳转web-view | 小程序内定义webview路由地址 | |
| buoy (浮标) | mcdpCode | string | 是 | - | 展位码应用ID | 获取展位信息必需 |
| webviewPath | string | 否 | - | 跳转web-view | 小程序内定义webview路由地址 | |
| notice (公告) | mcdpCode | string | 是 | - | 展位码应用ID | 获取展位信息必需 |
| webviewPath | string | 否 | - | 跳转web-view | 小程序内定义webview路由地址 | |
| banner (弹屏) | mcdpCode | string | 是 | - | 展位码应用ID | 获取展位信息必需 |
| webviewPath | string | 否 | - | 跳转web-view | 小程序内定义webview路由地址 |
FAQs
## Package信息
The npm package @alipay-inc/mpaas-mcdp-wx-render receives a total of 16 weekly downloads. As such, @alipay-inc/mpaas-mcdp-wx-render popularity was classified as not popular.
We found that @alipay-inc/mpaas-mcdp-wx-render demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Security News
TypeScript 6.0 will be the last JavaScript-based major release, as the project shifts to the TypeScript 7 native toolchain with major build speedups.