fix: pay channel bug
This commit is contained in:
1 parent
a37d13604d
commit
fc46e7b354
3 files changed
+5
-6
No files matched your search
@@ -21,4 +21,3 @@ ALTER TABLE `user_wallet_history` MODIFY COLUMN `balance_after` decimal(16, 6) N
|
||||
INSERT INTO `sys_config` (`id`,`key`, `value`,`description`,`created_at`,`updated_at`)
|
||||
VALUES ('xpack-version','version', '1.0.0', 'User wallet history max count', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)
|
||||
ON DUPLICATE KEY UPDATE `value` = VALUES(`value`), `description` = VALUES(`description`), `updated_at` = CURRENT_TIMESTAMP;
|
||||
|
||||
@@ -37,7 +37,7 @@ async def payment_channel_list(
|
||||
"name": item.name,
|
||||
"config": cfg,
|
||||
"is_enabled": enable,
|
||||
"updated_time": item.update_at,
|
||||
"updated_time": item.updated_at,
|
||||
}
|
||||
)
|
||||
return ResponseUtils.success_page(data=result, total=total, page_num=page, page_size=page_size)
|
||||
@@ -65,7 +65,7 @@ async def payment_channel_enable(
|
||||
"name": data.name,
|
||||
"config": data.config,
|
||||
"is_enabled": data.status == 1,
|
||||
"updated_time": data.update_at,
|
||||
"updated_time": data.updated_at,
|
||||
}
|
||||
)
|
||||
return ResponseUtils.success(data={})
|
||||
@@ -92,7 +92,7 @@ async def payment_channel_disable(
|
||||
"name": data.name,
|
||||
"config": data.config,
|
||||
"is_enabled": data.status == 1,
|
||||
"updated_time": data.update_at,
|
||||
"updated_time": data.updated_at,
|
||||
}
|
||||
)
|
||||
return ResponseUtils.success(data={})
|
||||
@@ -119,7 +119,7 @@ async def payment_channel_config(
|
||||
"name": data.name,
|
||||
"config": config,
|
||||
"is_enabled": data.status == 1,
|
||||
"updated_time": data.update_at,
|
||||
"updated_time": data.updated_at,
|
||||
}
|
||||
)
|
||||
return ResponseUtils.success(data={})
|
||||
|
||||
@@ -15,4 +15,4 @@ class PaymentChannel(Base):
|
||||
name: Mapped[str] = mapped_column(String(255), nullable=False, comment="Channel name")
|
||||
status: Mapped[int] = mapped_column(Integer, nullable=False, comment="Channel status, 0: disabled, 1: enabled")
|
||||
config: Mapped[str] = mapped_column(Text, nullable=True, comment="Channel config")
|
||||
update_at: Mapped[datetime] = mapped_column(DateTime, nullable=True, comment="Update time")
|
||||
updated_at: Mapped[datetime] = mapped_column(DateTime, nullable=True, comment="Update time")
|
||||
Reference in new issue
Block a user