![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
zw-service-monitor
Advanced tools
政务方向,服务异常监控
注意:改接入文档,适合原生小程序开发接入,如使用第三方框架开发的小程序,以实际结果为准
1、 安装依赖
npm i zw-service-monitor --save
2、 在 app.js 中引入
import 'zw-service-monitor'; 3、配置域名 开发者后台->小程序管理->设置->开发设置->服务器域名->request 的合法域名 新增一条域名地址:https://zw.baidusmartapps.com
4、 观察工具中以下接口请求是否正常
接口地址:https://zw.baidusmartapps.com/ma/zw/monitor/logreport
请求成功:
确认该接口的 form data 的 status 是 success 还是 fail,success 代表业务接口正常,fail 代表业务接口异常 图片
提供 API 方式接入
在文件中引入
// 引入
const {sendSuccessLog, sendFailLog} = require('zw-service-monitor/dist/request/sendLog');
function request() {
const url = 'https://sfc.baidu.com/shopping/nianhuo/bimai?timestamp=10001';
const data = {
tabname: '美食酒水'
};
const oldDate = +new Date();
// 发起请求
swan.request({
url,
data,
method: 'POST',
success: res => {
// 请求错误
if (res && res.statusCode !== 200) {
res.errCode = res.statusCode;
// 发送错误日志
sendFailLog({
url,
data
}, oldDate, res);
} else {
// 业务接口状态
if (+res.data.errno === 0) {
// 发送成功日志
sendSuccessLog({
url,
data
}, oldDate)
} else {
// 发送错误日志
sendFailLog({
url,
data
}, oldDate, res);
}
}
},
fail: err => {
// 发送错误日志
sendFailLog({
url,
data
}, oldDate, err);
}
});
}
FAQs
The npm package zw-service-monitor receives a total of 3 weekly downloads. As such, zw-service-monitor popularity was classified as not popular.
We found that zw-service-monitor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.