摘要: 在 `ChannelInboundHandlerAdapter` 类中,除了 `channelActive` 和 `channelRead` 方法之外,还有其他方法用于处理不同类型的入站事件。以下是这些方法的解释说明: 1. `channelRegistered(ChannelHandlerCont 阅读全文
posted @ 2023-06-17 15:46 天葬 阅读(595) 评论(0) 推荐(0)
摘要: const formatSeconds = (value) => { if (value 0 || value < 1000) return '0秒'; var timestamp = parseInt(value) / 1000; // 毫秒转秒 // 小时取余数 const remainder 阅读全文
posted @ 2023-06-08 17:37 天葬 阅读(859) 评论(0) 推荐(0)
摘要: # 抖音开放平台接入 ## 准备工作 注册抖音开放平台 https://developer.open-douyin.com/ 并且进行企业认证。内网穿透工具(需支持https),推荐[ngrok](https://ngrok.com/)。 ## 相关网站 - 抖音开放平台: https://deve 阅读全文
posted @ 2023-06-02 17:14 天葬 阅读(11304) 评论(0) 推荐(0)
摘要: # 微信公众号开发 ## 准备工作 你要有一个微信公众号,一个内网穿透工具 ## 相关网站 - 微信公众号:https://mp.weixin.qq.com/ - 官网文档:https://developers.weixin.qq.com/doc/offiaccount/Basic_Informat 阅读全文
posted @ 2023-05-26 10:58 天葬 阅读(856) 评论(2) 推荐(1)
摘要: # 微信红包 ## 准备工作 微信商家开通支付功能、微信公众号、开通红包功能 ## 相关网站 - 微信支付: https://pay.weixin.qq.com/ - 签名生成算法:https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon.ph 阅读全文
posted @ 2023-05-26 10:02 天葬 阅读(135) 评论(0) 推荐(0)
摘要: Three加载3D模型贴图 # Three加载3D模型贴图 ## 准备阶段 1. 3D模型 2. three 库文件 3. 纹理图片 ## 相关资料 - 官方开发文档: https://threejs.org/docs - 官网编辑3D模型:https://threejs.org/editor/ 可以在这里创建一个3D模型导出 阅读全文
posted @ 2023-05-20 16:51 天葬 阅读(233) 评论(0) 推荐(0)
摘要: /** * @description: 微信接口地址枚举 * @author: Mr.Fang * @create: 2023-05-18 **/ public enum WxEnum { BASIC_URL("小程序与公众号", "https://api.weixin.qq.com", ""), 阅读全文
posted @ 2023-05-18 09:11 天葬 阅读(90) 评论(0) 推荐(0)
摘要: 自签SSL证书 key 私钥 = 明文--自己生成(genrsa ) csr 公钥 = 由私钥生成 crt 证书 = 公钥 + 签名(自签名或者由CA签名) 生成私钥 需要输入密码两次 12345678 (随便输) openssl genrsa -des3 -out server.pass.key 阅读全文
posted @ 2023-05-16 14:44 天葬 阅读(57) 评论(0) 推荐(0)
摘要: 官网文档地址:获取小程序码 package test; import com.alibaba.fastjson.JSONObject; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.ja 阅读全文
posted @ 2023-05-11 14:47 天葬 阅读(228) 评论(0) 推荐(0)
摘要: import org.springframework.util.Assert; import javax.imageio.ImageIO; import java.awt.image.BufferedImage; import java.io.*; import java.nio.charset.S 阅读全文
posted @ 2023-04-13 14:59 天葬 阅读(173) 评论(0) 推荐(0)