积分与余额账务系统硬切重构

This commit is contained in:
2026-08-24 15:59:11 +08:00
parent ca12226b39
commit 5cae5b5c93
159 changed files with 7275 additions and 4718 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ interface GatewayInterface {
* 验证回调
*
* @param \WP_REST_Request $request 回调请求
* @return array{success: bool, order_number?: string, amount?: float, transaction_id?: string, message?: string}
* @return array{success: bool, order_number?: string, amount?: string, transaction_id?: string, message?: string}
*/
public function verify_callback(\WP_REST_Request $request): array;
@@ -39,11 +39,11 @@ interface GatewayInterface {
* 退款
*
* @param string $order_number 订单号
* @param float $amount 退款金额
* @param string $amount 最多两位小数的退款金额
* @param string $request_id 幂等退款请求号
* @return array{success: bool, status?: string, refund_id?: string, request_id?: string, message?: string}
*/
public function refund(string $order_number, float $amount, string $request_id = ''): array;
public function refund(string $order_number, string $amount, string $request_id = ''): array;
/**
* 获取网关显示名称