Browse Source

增加充值折扣获取

alexzy 2 years ago
parent
commit
d381cbd3e4
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/PromoteDiscountServiceInterface.php

+ 4 - 2
src/PromoteDiscountServiceInterface.php

@@ -8,18 +8,20 @@ interface PromoteDiscountServiceInterface
      * 根据渠道ID和游戏ID获取基础折扣以及加点折扣信息
      * @param int $promote_id
      * @param int $game_id
+     * @param int $amount
      * @return array
      */
-    public function discountInfo(int $promote_id, int $game_id): array;
+    public function discountInfo(int $promote_id, int $game_id, int $amount = 1): array;
 
     /**
      * 查询渠道用户折扣信息
      * @param $promote_id
      * @param $game_id
      * @param $user_id
+     * @param int $amount
      * @param mixed $default_discount
      * @return array
      */
-    public function rechargeDiscount($promote_id, $game_id, $user_id, $default_discount = false): array;
+    public function rechargeDiscount($promote_id, $game_id, $user_id, int $amount = 1, $default_discount = false): array;
 
 }