
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@alipay-inc/mpaas-mcdp-miniapp-render
Advanced tools
包名:@alipay-inc/mpaas-mcdp-ali-render 类型:公共类库 适用场景:支付宝小程序, mpaas小程序 功能简介:支持在支付宝小程序和mpaas小程序进行弹屏、公告、轮播(banner)、浮标四种类型的展位投放,和个性化广告投放能力。
npm install @alipay-inc/mpaas-mcdp-ali-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-ali-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 | 埋点上报数据必需 |
广告类型 | 属性名 | 类型 | 必填 | 默认值 | 说明 | 备注 |
---|---|---|---|---|---|---|
rotation (轮播) | 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-miniapp-render receives a total of 1 weekly downloads. As such, @alipay-inc/mpaas-mcdp-miniapp-render popularity was classified as not popular.
We found that @alipay-inc/mpaas-mcdp-miniapp-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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.