1. 【新增】售后单售后原因类型支持搜索

2. 【新增】手工创建订单折扣可输入正数

3. 【优化】盘点申请单确认

4. 【修复】采购退货单模拟出库失败问题

5. 【新增】订单金额客户实付与结算金额

6. 【优化】仓库发货统计报表物料名称显示

7. 【优化】自有仓储虚拟发货逻辑

8. 【修复】基础物料分类管理问题
This commit is contained in:
chenping
2026-04-01 11:59:17 +08:00
parent 9341122827
commit 61783b7d01
754 changed files with 46179 additions and 5700 deletions

View File

@@ -14,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//加载配置信息
require_once(dirname(__FILE__) . '/../../config/config.php');
class taskmgr_rpc_sign{
@@ -23,9 +22,35 @@ class taskmgr_rpc_sign{
*
* 生成签名算法函数
* @param array $params
* @param string $token 可选指定使用的token默认使用REQ_TOKEN
*/
static public function gen_sign($params){
return strtoupper(md5(strtoupper(md5(self::assemble($params))).REQ_TOKEN));
static public function gen_sign($params, $token = null){
$useToken = $token !== null ? $token : REQ_TOKEN;
return strtoupper(md5(strtoupper(md5(self::assemble($params))).$useToken));
}
/**
* 验证签名支持新旧token同时验证用于平滑切换
* @param array $params 参数数组不包含taskmgr_sign
* @param string $sign 待验证的签名
* @return bool 验证是否通过
*/
static public function validate_sign($params, $sign){
// 先尝试用新token验证
$newSign = self::gen_sign($params);
if($sign === $newSign){
return true;
}
// 如果配置了旧token尝试用旧token验证用于平滑切换
if(defined('REQ_TOKEN_OLD') && REQ_TOKEN_OLD){
$oldSign = self::gen_sign($params, REQ_TOKEN_OLD);
if($sign === $oldSign){
return true;
}
}
return false;
}
/**
@@ -45,4 +70,4 @@ class taskmgr_rpc_sign{
}
return $sign;
}
}
}