Commit Graph

56 Commits

Author SHA1 Message Date
f06074d9cc update:更新SDK 修改 2026-05-21 14:45:27 +08:00
ed6fe668ad update:逻辑更新 2026-05-21 00:37:19 +08:00
eecf54c6a4 update:更新tysdk 默认修改 2026-05-14 11:53:38 +08:00
49d80ee008 update:更新tysdk:注意直接consume了 2026-05-14 11:49:07 +08:00
f9b5413a81 refactor: 支付链路规范化 — 统一命名/层次/传参
- ISDKHelper.pay() 增加 productPrice 参数,与 UnityKnowNew 签名对齐
- FlexionSDKHelper: prodPrice/prodCount 从参数直接写入 developerPayload
- playerId → userId 统一命名 (SDKTest/Java payload)
- pfId → pfid 统一小写 (服务端 JSON key)
- PaymentInfo 序列化替代 StringBuilder 手拼 JSON
- FlexionPaymentVerifier.Consume 走 UnityBridgeFunc.ConsumePurchase 桥接层
- UnityBridgeFunc 新增 ConsumePurchase 通用方法,移除渠道特定方法
- SDKManager.ConsumeFlexionPurchase → ConsumePurchase 通用化

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 15:24:39 +08:00
de3ff3b7a4 feat: 支付验签框架 — 策略模式 + 装饰器重试
- 新增 IPaymentVerifier 接口 (Verify + Consume),渠道无关
- 新增 PaymentVerifierFactory 按 Channel 分发
- 新增 FlexionPaymentVerifier: HTTP 验签 + 线性 backoff 重试
- 新增 DummyPaymentVerifier: 占位验签实现
- 新增 RetryablePaymentVerifier: 装饰器,流程级重试
- TYSdkFacade_Pay: PayResult 增加验签分支,先验签后消费再回调
- TYSdkModel: PaymentInfo 增加 verified 字段
- UnityBridgeFunc: 移除 ConsumeFlexionPurchase(职责收归 Verifier)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 11:25:20 +08:00
f60a1dd0c2 feat: Flexion 先验签后消费支付流程 + playerId 绑定
实现 Flexion 渠道支付验签重构:支付成功后不立即消费,将 purchaseJson/signature/purchaseToken
回调至 Unity,由服务端 SHA1withRSA 验签并校验 developerPayload.playerId 后再调用 consume。
同步更新 SDKManager 接口、UnityBridgeFunc 桥接、TYSdkModel 字段及 ExtraPluginCfgs。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-09 16:04:29 +08:00
d361d9078b feat: merge rustore test UI and unify SKU format across channels
- Merge VK login/link/check and Review test buttons from dev_rustore
- Unify Rustore/GooglePlay SKU format via ChannelHelpers.normalizeSkuList()
- Fix ChannelConfig runtime sync: Java InitSDK sets channel from ChannelHelpers.CHANNEL
- Fix AndroidMinSdkVersion 25→26 for tuyoosdk compatibility
- Fix Flexion AndroidManifest tools:replace missing fullBackupContent value
- Add [CHANNEL-VERIFY] debug logs for channel verification

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-30 15:38:21 +08:00
66aa7a931b update:更新flexion 以及sdk 接入 2026-04-29 20:43:16 +08:00
c0b6ccf7ed update:更新sdk 脚本 2026-04-03 21:19:41 +08:00
db82fe0116 更新BridgeFunc
Made-with: Cursor
2026-04-03 21:09:11 +08:00
6866b7fca9 enhance ChangeLinkAccount functionality
- Added LoginTypeToBindType function to map login types to binding types.
- Updated ChangeLinkAccount method to handle account linking and unbinding with appropriate error handling.
- Ensured proper messaging for success and failure cases during account changes.
- Cleaned temporary SNS information after account change attempts.
2026-03-30 22:11:16 +08:00
9f5151c54c [U] sync with ft 2026-03-27 12:29:31 +08:00
3f78e8464a [U] sync with tf 2026-03-23 11:02:05 +08:00
7d479b7758 [U] ty sdk 2026-03-10 16:07:49 +08:00
abe11029cc [M] sync with ft proj 2026-03-02 15:52:30 +08:00
c81301e476 refactor(tysdk): 优化账户信息处理逻辑
- 移除重复的账户信息初始化代码,统一处理流程
- 简化 JSON 数据解析方式,直接转换类型避免方法调用
- 重构登录数据处理逻辑,移除不必要的条件判断
- 优化账户信息更新机制,直接更新 token 字段
- 删除过时的账户信息验证和创建逻辑
2026-01-07 20:13:25 +08:00
4d12bdf0ec refactor(tysdk): 重构SDK登录和绑定功能
- 重构iOS构建参数,添加调试构建选项
- 实现iOS调试构建菜单项,支持开发选项和调试连接
- 修复Android SDKManager中的snsInfo临时存储逻辑
- 添加清理临时snsInfo的方法实现
- 在iOS接口中添加登录类型存储和sns信息重新登录功能
- 重构账号绑定逻辑,统一处理不同平台的绑定流程
- 添加绑定失败时的登出回调处理
- 更新UnityBridgeFunc中的原生接口绑定
- 在测试脚本中添加初始化时清理临时sns信息
2026-01-07 15:08:04 +08:00
cb2ff22a89 fix(sdk): improve SNS login binding and account handling
- Remove premature null check in LoginBySns to allow login flow
- Add debug logging for SNS login failures
- Handle code==-1 case when binding accounts with same userId

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-06 11:25:05 +08:00
b0cce65e54 fix(sdk): 修复登录数据处理和账户绑定功能
- 修改Android端登录数据结构,统一使用loginData字段
- 添加JSON异常处理机制,避免解析错误导致崩溃
- 修复Unity端登录数据解析路径,从respObj.result改为loginData
- 在账户绑定成功后更新账户信息,添加渠道标识
- 优化链接账户回调处理,支持登录数据的完整传递
- 修复代码格式和字符串拼接问题
2025-12-31 17:15:25 +08:00
053bdf70a2 [M] fix SNS login and JSON syntax errors
- Fix extra closing brace in JSON error callbacks (SDKManager.java)
- Enable SNS type return from UnityLoginBySnsInfo for proper account channel tracking
- Update LoginBySns to use returned SNS type for linked account management
- Re-enable editor mode login for testing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-30 20:24:13 +08:00
aa5ce1ff5a [U] add PlayFab SDK and SNS login improvements
- Add PlayFabSDK as local package dependency
- Add PlayFabTool.cs for PlayFab API integration
- Implement LoginBySns method in TYSdkFacade
- Add Android SNS login support in SDKManager and UnityBridgeFunc
- Add Build Android With Debug menu option
- Improve exception handling and timeout management

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-29 16:12:17 +08:00
638e6a3327 [M] upgrade Unity 2022.3.62 and fix link parsing
Upgraded Unity editor to 2022.3.62f2c1 with related package updates. Fixed LinkAccoutResult JSON parsing to properly handle bindInfo as dictionary. Added Android namespace configuration.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-25 18:19:30 +08:00
58a29b0335 [M] change sns link function 2025-12-25 15:42:47 +08:00
8cc0a67f03 [M] new call back
[wip]
2025-12-22 16:11:55 +08:00
ecdb09eac2 [U] copy from n3 client 2025-08-16 15:54:49 +08:00
aa03da91a4 [U] ad plugins 2025-02-14 17:40:00 +08:00
c576351bca [A] facebook share 2025-01-17 16:15:48 +08:00
0332758335 [U] Sync n3 2025-01-09 17:25:30 +08:00
05331e6286 [M] sync n3 2024-12-09 16:54:19 +08:00
7401a30ebf [M] sync with n3 2024-11-28 14:00:57 +08:00
959d7d2cce [M] sync from n3-world 2024-08-30 10:12:40 +08:00
d449fee825 [F] Apple link callback 2024-08-26 14:42:08 +08:00
bb7a450464 [M] signout default lang EN 2024-08-26 12:40:23 +08:00
728af3cfd7 [F] Link [A] signout 2024-08-24 19:23:39 +08:00
da367097c8 [M] sync from n3 2024-08-22 18:04:52 +08:00
1a0af9d725 [M] all functional 2024-08-16 00:56:24 +08:00
c355784122 [M] login & logout & payment
- login by token
- save account info
- logout remove accout info
- iOS SKU list parser
- iOS Pay
2024-08-13 23:53:35 +08:00
6332ff9055 [M] MAX SDK callback Test 2024-08-09 18:35:08 +08:00
LYP
c5f9a0e84b 错误修改 2024-08-09 11:52:53 +08:00
LYP
8706239fbd Merge branch 'main' of 192.168.9.102:tysdk-intergration
# Conflicts:
#	sdk-intergration/Assets/Scripts/SDKTest.cs
#	sdk-intergration/Packages/tysdk/Runtime/TYSdkFacade_Pay.cs
#	sdk-intergration/Packages/tysdk/Runtime/TYSdkModel.cs
2024-08-09 11:48:57 +08:00
LYP
2419cfb216 商品列表处理 2024-08-09 11:24:07 +08:00
LYP
6a25f92182 中间版本 2024-08-08 19:42:52 +08:00
b427979811 [WIP] SKU list 2024-08-08 19:41:07 +08:00
e058996e29 [M] move Applovin.Max & Appsflyer to Assets 2024-08-08 17:54:20 +08:00
4343d67794 [A] Add Applovin Max SDK 2024-08-08 13:10:29 +08:00
LYP
69fee08c61 af 兼容處理 2024-08-07 17:00:55 +08:00
4b0a85efea [F] iOS Payment param, remote UnityKnown thirdExtend 2024-08-07 01:26:49 +08:00
90d63db9e6 [A] appsflyer, SDK facade init method 2024-08-07 00:28:22 +08:00
d2f1da88f1 [M] iOS add UnityKnowNew pay method 2024-08-06 20:36:33 +08:00