首页 文章 精选 留言 我的

精选列表

搜索[ocr工具],共10000篇文章
优秀的个人博客,低调大师

AbMole 工具化合物篇丨 L-Sepiapterin(L-墨蝶呤):四氢生物蝶呤前体,在内皮功能与血管生成研究中的应用

摘要:L-Sepiapterin(L-墨蝶呤,AbMole,M58137,CAS No.:17094-01-8)是四氢生物蝶呤(BH4)的稳定前体化合物,可经补救途径转化为 BH4,恢复内皮型一氧化氮合酶(eNOS)的辅因子供应。L-Sepiapterin(L-墨蝶呤,AbMole,M58137)能通过偶联 eNOS、减少超氧阴离子生成,改善内皮依赖性血管舒张,常用于血管内皮功能、氧化应激与血管生成模型的细胞与动物实验。

优秀的个人博客,低调大师

【个人学习】【虚拟支付】一个人、一个小工具、一次合规收款:我的虚拟支付接入全流程

虚拟支付前置开通流程建议看官方就够了~ https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/virtual-payment/person.html > 温馨提示: > - 本文从服务端接入开始陈述 > - 仅限小程序是非云开发 > - 后端语言基于 Java,重要代码会给出 --- ## 一、配置消息推送 ### 1. 启用消息推送 在小程序后台「开发管理 → 消息推送」中启用。 启用后,用户发给小程序的消息以及开发者需要的事件推送,都会被微信转发到配置的服务器地址。 ### 2. 配置消息推送 - 服务器地址:最好是没有任何校验、没有任何参数的公网可访问地址 - Token:自己生成 32 位,保存到自己的服务器 - EncodingAESKey:随机生成,保存到自己的服务器 - 消息加密方式:推荐使用 **安全模式** - 数据格式:推荐使用 **JSON** ### 3. 保存消息推送 提交后,服务器配置完成,数据格式配置会在 5 分钟内生效。 --- ## 二、Java 实现:接收消息推送验签(GET 请求) 消息推送配置验证接口是 **GET 请求**,返回字符串而不是 JSON。 ```java /** * @Description 微信消息推送服务器配置接口 * @return org.springframework.http.ResponseEntity * @Author 小帅丶 * @Date 2026年9月24日 */ @GetMapping(value = "/message/{code}") public String configMsg( @RequestParam(name = "signature", required = false) String signature, @RequestParam(name = "timestamp", required = false) String timestamp, @RequestParam(name = "nonce", required = false) String nonce, @RequestParam(name = "echostr", required = false) String echostr, @PathVariable(name = "code", required = false) String code) { log.info("方法路径{}", requestURI); String token = CommonConstant.VirtualWXPayConts.PUSH_TOKEN; startTime = System.currentTimeMillis(); param = StrUtil.nullToEmpty(request.getQueryString()); log.info("微信消息推送URL验证-参数:{} code:{}", param, code); boolean checkResult = WXMsgPushUtil.checkSignature(token, timestamp, nonce, signature); log.info("微信消息推送URL验证-验签结果:{}", checkResult); timeConsuming = String.valueOf(System.currentTimeMillis() - startTime); log.info("耗时{}", timeConsuming); // 验签失败返回 fail,让后台配置提示失败 String beanStr = checkResult ? StrUtil.nullToEmpty(echostr) : "fail"; log.info("微信消息推送URL验证-返回结果:{}", beanStr); return beanStr; } ``` --- ## 三、虚拟支付:代币充值 ### 1. 准备工作 - 虚拟支付相关 id 信息自己保存 - 本文只做「代币充值」实现 - 需要结合业务系统创建必要表和业务代码 代币配置示例: - 代币名称:独立开发者的一点燃料 - 兑换比例: - 1 人民币 = 1 代币 - 1 人民币 = 10 代币 - 1 人民币 = 100 代币 如果是 1:100,充值 1 元,购买数量就是 100。 --- ### 2. 预下单:创建订单 ```java /** * @Description 虚拟支付预下单 * @Author 小帅丶 * @Date 2022年6月16日 14:53:35 */ @RequestMapping(value = "/order", method = RequestMethod.POST) public ResponseEntity order( @RequestBody(required = false) VPayOrderRequest vPayRequest) { log.info("方法路径{}", requestURI); VPayOrderResponse bean = new VPayOrderResponse(); try { startTime = System.currentTimeMillis(); if (ObjectUtil.isEmpty(vPayRequest) || StrUtil.isEmpty(vPayRequest.getPayCode()) || ObjectUtil.isEmpty(vPayRequest.getBuyQuantity()) || ObjectUtil.isEmpty(vPayRequest.getEnv()) || ObjectUtil.isEmpty(vPayRequest.getSessionKey()) || ObjectUtil.isEmpty(vPayRequest.getUserId()) || ObjectUtil.isEmpty(vPayRequest.getOpenid()) || ObjectUtil.isEmpty(vPayRequest.getProductCode())) { bean.error("下单参数为空"); } else { bean = virtualPayComponent.createVPayOrder(vPayRequest); } } catch (Exception e) { errorMsg = e.getMessage(); log.info("虚拟支付下单错误出错了" + errorMsg); bean.error("下单错误"); } timeConsuming = String.valueOf(System.currentTimeMillis() - startTime); log.info("耗时{}", timeConsuming); beanStr = JSON.toJSONString(bean); apiBeanUtil.putLog(...); return new ResponseEntity<>(beanStr, httpHeaders, HttpStatus.OK); } ``` --- ### 3. 小程序调起支付 ```js requestVirtualPayment(order) { wx.requestVirtualPayment({ signData: order.signData, paySig: order.paySig, signature: order.signature, mode: order.mode, success(res) { console.log('requestVirtualPayment success', res) }, fail({ errMsg, errCode }) { console.error(errMsg, errCode) wx.showModal({ title: '支付失败', content: errMsg + '(错误码:' + errCode + ')', showCancel: false, confirmText: '知道了' }) } }) } ``` --- ## 四、支付成功:接收消息推送并发货(POST 请求) ```java @PostMapping(value = "/message/{code}") public ResponseEntity pushMsg( @RequestBody(required = false) String body, @RequestParam(name = "signature", required = false) String signature, @RequestParam(name = "timestamp", required = false) String timestamp, @RequestParam(name = "nonce", required = false) String nonce, @RequestParam(name = "openid", required = false) String openid, @RequestParam(name = "encrypt_type", required = false) String encrypt_type, @RequestParam(name = "msg_signature", required = false) String msg_signature, @PathVariable(name = "code", required = false) String code) { WXPushMsgResponse pushMsgResponse = new WXPushMsgResponse(); log.info("方法路径{}", requestURI); startTime = System.currentTimeMillis(); // 1. 先落库 PayVirtualNotify payVirtualNotify = new PayVirtualNotify(); payVirtualNotify.setCode(code) .setSignature(signature) .setTimestamp(timestamp) .setNonce(nonce) .setOpenid(openid) .setEncryptType(encrypt_type) .setMsgSignature(msg_signature) .setMsgBody(body) .setCreateBy("wechat") .setCreateTime(new Date()); payVirtualNotifyService.save(payVirtualNotify); String token = CommonConstant.VirtualWXPayConts.PUSH_TOKEN; String encodingAesKey = CommonConstant.VirtualWXPayConts.PUSH_ENCODING_AES_KEY; String appId = code; boolean aesMode = WXMsgPushUtil.ENCRYPT_TYPE_AES.equalsIgnoreCase(encrypt_type); String encrypt = aesMode ? WXMsgPushUtil.getEncrypt(body) : null; boolean checkResult = aesMode ? WXMsgPushUtil.checkMsgSignature(token, timestamp, nonce, encrypt, msg_signature) : WXMsgPushUtil.checkSignature(token, timestamp, nonce, signature); if (!checkResult) { pushMsgResponse.setErrCode("1"); pushMsgResponse.setErrMsg("fail"); } else { try { String plainMsg = aesMode ? WXMsgPushUtil.decrypt(encrypt, encodingAesKey, appId) : body; WXPushVirtualPayResponse msgJson = JSON.parseObject(plainMsg, WXPushVirtualPayResponse.class); String event = msgJson.getEvent(); if (CommonConstant.VirtualWXPayConts.EVENT_PAY_NOTIFY.equals(event)) { virtualPayComponent.handlePayNotify(msgJson); } if (CommonConstant.VirtualWXPayConts.EVENT_PAY_REFUND.equals(event)) { // 处理退款通知 } pushMsgResponse.setErrCode("0"); pushMsgResponse.setErrMsg("success"); } catch (Exception e) { errorMsg = e.getMessage(); pushMsgResponse.setErrCode("1"); pushMsgResponse.setErrMsg("fail"); } } String beanStr; if (aesMode) { beanStr = WXMsgPushUtil.buildJsonReply( JSON.toJSONString(pushMsgResponse), token, encodingAesKey, appId, nonce); } else { beanStr = JSON.toJSONString(pushMsgResponse); } return new ResponseEntity<>(beanStr, httpHeaders, HttpStatus.OK); } ``` --- ## 五、业务系统需要做的改动 1. 创建「订单表」「商品 / 道具表」 2. 小程序端增加充值、购买、余额展示功能 3. 通过微信消息推送接收「支付成功 / 退款」事件 4. 支付成功后:更新订单状态 + 增加用户代币余额 5. 必须有兜底能力: - 支付状态查询 - 退款接口 --- > 总结:个人主体小程序做虚拟支付,核心是「消息推送配置 → 预下单 → 小程序调起支付 → 微信回调处理 → 业务侧加币」,Token / AESKey 自己存,安全模式用 `msg_signature`,回包要加密 JSON。 示例代码:https://gitcode.com/u010651369/codes 扫码体验: ![下载 (1).png](https://developer.qcloudimg.com/http-save/yehe-1219395/9ec04825ad445d3338e630655b28847d.jpg)

优秀的个人博客,低调大师

2026年"开发工具全时监控"的隐性代价:当算法替我们记录每一次操作,被省掉的恰恰是"那次没人看见的试错"

2026 年,研发效能度量已经细到"操作级"。IDE 的每一次保存、每一次 Agent 调用、每一个提交间隔、每一份 token 消耗,都被采集进一张看板。系统在季度会上很得意:覆盖 1,860 名工程师、日均采集 4,700 万条行为事件、效能评分与交付周期相关性 0.74。产品宣传语很直接:"把度量交给数据,把判断留给管理者。"

优秀的个人博客,低调大师

AbMole 工具化合物篇丨 Dimethyloxallyl Glycine (DMOG):缺氧诱导因子脯氨酰羟化酶抑制剂,在缺氧信号与缺血模型研究中的应用

摘要:Dimethyloxallyl Glycine(DMOG,二甲基草酰甘氨酸,AbMole,M2558,CAS No.:89464-63-1)是竞争性的、细胞可渗透的缺氧诱导因子脯氨酰羟化酶(HIF-PH)抑制剂,同时也是 HIF-1α 的激活剂和细胞实验中常用的缺氧模拟剂。Dimethyloxallyl Glycine(二甲基草酰甘氨酸,AbMole,M2558)通过抑制 HIF-α 脯氨酰羟化酶,阻断 HIF-1α 的羟化、泛素化与降解,稳定 HIF-1α 并激活缺氧应答基因程序。Dimethyloxallyl Glycine(DMOG)常用于缺氧信号、血管生成与组织缺血模型的细胞与动物实验。

资源下载

更多资源
优质分享App

优质分享App

近一个月的开发和优化,本站点的第一个app全新上线。该app采用极致压缩,本体才4.36MB。系统里面做了大量数据访问、缓存优化。方便用户在手机上查看文章。后续会推出HarmonyOS的适配版本。

腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

用户登录
用户注册
修改密码
忘记密码