会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Wyc
博客园
首页
新随笔
联系
订阅
管理
2025年3月5日
uvicorn+fastapi+nginx部署
摘要: pip install uvicorn pip install gunicorn import os # 设置守护进程 daemon=True # 监听内网端口8000 bind='0.0.0.0:8000' # 设置进程文件目录 pidfile='./gunicorn.pid' chdir='./
阅读全文
posted @ 2025-03-05 16:07 WrYcF
阅读(429)
评论(0)
推荐(0)
2024年1月26日
微信小程序实现代付款分享好友商品卡片
摘要: onShareAppMessage: function(res) { console.log(JSON.stringify(res)) const{all_data, user_addr, all_price, username, id_card, order_sku_id} = this.data
阅读全文
posted @ 2024-01-26 20:55 WrYcF
阅读(102)
评论(0)
推荐(0)
2023年8月15日
axios封装
摘要: import axios from 'axios'; const http_url = "https://xxx.xxx.com" // get请求 export function getRequest(url, sendData) { return new Promise((resolve, re
阅读全文
posted @ 2023-08-15 16:54 WrYcF
阅读(13)
评论(0)
推荐(0)
2023年7月12日
微信支付V2签名生成
摘要: 参数 sign_data = { "appid": APP_ID, "mch_id": MCAH_ID, "out_trade_no": order.order_num, "transaction_id": order.pay_order, "customs": "xxxxx", "mch_cust
阅读全文
posted @ 2023-07-12 09:13 WrYcF
阅读(236)
评论(0)
推荐(0)
2023年7月7日
Mysql删除重复数据 保留一条最新数据
摘要: -- 查看重复数据 SELECT `item_id`,COUNT(1) FROM app_wine GROUP BY `item_id` HAVING COUNT(1) > 1 -- 删除重复数据保留一条最新数据 DELETE FROM app_wine WHERE id NOT IN ( SELE
阅读全文
posted @ 2023-07-07 11:01 WrYcF
阅读(295)
评论(0)
推荐(0)
2023年6月2日
react 实现聊天界面,发送消息自动到底部
摘要: <div style={{ float:"left", clear: "both" }} ref={(el) => { this.messagesEnd = el; }}> </div> scrollToBottom = () => { this.messagesEnd.scrollIntoView
阅读全文
posted @ 2023-06-02 09:25 WrYcF
阅读(232)
评论(0)
推荐(0)
2023年3月30日
工作中为什么要让写日报,周报和月报,一问带你读懂!
摘要: 日报和周报是企业日常管理中非常重要的工具,能够帮助管理者了解员工工作情况和进展,优化工作流程,提高工作效率。但是,很多员工在填写日报周报时常常感到头大,不知道如何填写和提交。本文将针对这个问题,探讨日报周报填写的重要性以及如何通过工作日志生成器来解决填写难题。 一、日报周报的重要性 了解工作进展日报
阅读全文
posted @ 2023-03-30 13:29 WrYcF
阅读(1424)
评论(0)
推荐(1)
2023年3月20日
js根据起始日期加间隔天数计算出结束日期
摘要: getNewDay(dateTemp, days) { dateTemp = dateTemp.split("-"); //转换为MM-DD-YYYY格式 var nDate = new Date(dateTemp[1] + "-" + dateTemp[2] + "-" + dateTemp[0]
阅读全文
posted @ 2023-03-20 13:38 WrYcF
阅读(373)
评论(0)
推荐(0)
2023年3月3日
pymonodb 批量更新数据
摘要: from pymongo import UpdateOne action = list() with open("/Users/wyc/work/geneSearch/server/search/userdatagene.fixed.txt", "r") as f: count = 0for ite
阅读全文
posted @ 2023-03-03 15:03 WrYcF
阅读(92)
评论(0)
推荐(0)
2023年3月1日
go手动添加锁=安全
摘要: package main import ( "fmt" "sync" "time" ) // 为了解决线程不安全,我们自己加锁 type concurentMat struct { mp map[int]int sync.RWMutex } // 通过set方法做原有map的赋值 func (c *
阅读全文
posted @ 2023-03-01 14:16 WrYcF
阅读(40)
评论(0)
推荐(0)
下一页
公告
Live2D