|
|
@@ -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;
|
|
|
|
|
|
}
|