修改sign。

键盘里ai回复的bug
This commit is contained in:
2026-02-24 14:59:06 +08:00
parent 0ac47925fd
commit 5edf1751ff
6 changed files with 104 additions and 95 deletions

View File

@@ -30,6 +30,10 @@ NS_ASSUME_NONNULL_BEGIN
/// 简单 nonce 生成(默认 16 位)
+ (NSString *)generateNonceWithLength:(NSUInteger)length;
/// 生成本项目后端约定的签名请求头X-Sign/X-App-Id/X-Timestamp/X-Nonce
/// bodyParams参与签名的业务参数如 JSON body 字段)。内部会做类型容错与空值过滤。
+ (NSDictionary<NSString *, NSString *> *)signHeadersWithBodyParams:(nullable NSDictionary *)bodyParams;
@end
NS_ASSUME_NONNULL_END