liufumingren c35ac184ae feat: WMS 开放接口签名 & 消息转发模块
- 新增 extra/wms.php 统一配置(app_key/app_secret/base_url)
- 新增 WmsSign.php 签名工具(canonicalQuery + bodySign + stableStringify)
- 新增 WmsVerify.php 验签工具(恒定时间比较防时序攻击)
- 新增 func/ 目录与远端 API 对应(Index.ping / Store.list / Inbox.push)
- 重构 Forward.php 使用 Inbox.push 转发群聊消息到 WMS 站内信
- Chat.php processMessage 接入 Forward 转发,异常不阻塞原有流程
- 删除冗余 WmsSignConfig.php,配置统一从 config('wms') 读取
- 修复 deploy.js chown/chmod .user.ini 报错
2026-08-06 22:46:30 +08:00

24 lines
583 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* WMS 开放接口配置
*
* 使用 config('wms.xxx') 读取,如 config('wms.app_key')
*/
return [
// WMS 仓库接口基础地址(不含 /warehouse)
'base_url' => 'https://wms.wms.gztbyc.com',
// 应用 Key(由 WMS 平台分配,联系仓库管理员获取)
'app_key' => 'AK2026080314055697eb6c36',
// 应用 Secret(由 WMS 平台分配)
'app_secret'=> '5514e6bd12fcf6622606b5eb70981b3a1dcf2d2718aca1100f9a9fc6e60b35e1',
// API 版本
'version' => '1.0',
// 请求超时(秒)
'timeout' => 10,
];