调试红包活动

This commit is contained in:
luofei 2024-01-20 10:33:41 +08:00
parent 9553526dda
commit 55966ff40d

View File

@ -45,14 +45,14 @@ class StoreConsumptionUserDao extends BaseDao
/** /**
* 发起人活动校验 * 发起人活动校验
* @param int $userId * @param int $userId
* @param array $groupOrder * @param $groupOrder
* @param int $spreadUserId * @param int $spreadUserId
* @return bool * @return bool
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
*/ */
public function promoter(int $userId, array $groupOrder, int $spreadUserId) public function promoter(int $userId, $groupOrder, int $spreadUserId)
{ {
$consumptionId = (new StoreActivityUserDao())->getValue($userId); $consumptionId = (new StoreActivityUserDao())->getValue($userId);
$consumption = (new StoreConsumptionDao())->getOne($consumptionId); $consumption = (new StoreConsumptionDao())->getOne($consumptionId);
@ -84,14 +84,14 @@ class StoreConsumptionUserDao extends BaseDao
/** /**
* 受邀人活动校验 * 受邀人活动校验
* @param int $userId * @param int $userId
* @param array $groupOrder * @param $groupOrder
* @param int $spreadUserId * @param int $spreadUserId
* @return bool|void * @return bool|void
* @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
*/ */
public function guest(int $userId, array $groupOrder, int $spreadUserId) public function guest(int $userId, $groupOrder, int $spreadUserId)
{ {
// 查询推荐人的消费金类型 // 查询推荐人的消费金类型
$spreadConsumptionId = (new StoreActivityUserDao())->getValue($spreadUserId); $spreadConsumptionId = (new StoreActivityUserDao())->getValue($spreadUserId);