fix(iap/apple): 修复PEM格式私钥并添加调试回退逻辑
Build docker and publish / build (20.15.1) (push) Successful in 6m47s
Build docker and publish / build (20.15.1) (push) Successful in 6m47s
修复从请求中获取的PEM格式私钥缺少换行符的问题,自动添加正确格式 添加开发环境下的硬编码私钥回退逻辑,便于调试
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DROP TABLE IF EXISTS `apple_iap_transactions`;
|
||||
@@ -0,0 +1,15 @@
|
||||
CREATE TABLE IF NOT EXISTS `apple_iap_transactions` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
`user_id` bigint(20) NOT NULL COMMENT 'User ID',
|
||||
`original_transaction_id` varchar(255) NOT NULL COMMENT 'Original Transaction ID',
|
||||
`transaction_id` varchar(255) NOT NULL COMMENT 'Transaction ID',
|
||||
`product_id` varchar(255) NOT NULL COMMENT 'Product ID',
|
||||
`purchase_at` datetime NOT NULL COMMENT 'Purchase Time',
|
||||
`revocation_at` datetime DEFAULT NULL COMMENT 'Revocation Time',
|
||||
`jws_hash` varchar(255) NOT NULL COMMENT 'JWS Hash',
|
||||
`created_at` datetime DEFAULT NULL COMMENT 'Create Time',
|
||||
`updated_at` datetime DEFAULT NULL COMMENT 'Update Time',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uni_original` (`original_transaction_id`),
|
||||
KEY `idx_user_id` (`user_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
Reference in New Issue
Block a user