Browse Source

1、概率调整;

Lawsun_M 1 year ago
parent
commit
2c866687a0
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/controller/home/user.js

+ 4 - 4
app/controller/home/user.js

@@ -980,10 +980,10 @@ module.exports = class UserController extends shopController {
         const prizes = [
           { reward: 6, weight: 4 },
           { reward: 1, weight: 1 },
-          { reward: 10, weight: 30 },
-          { reward: 8, weight: 5 },
-          { reward: 30, weight: 10 },
-          { reward: 20, weight: 50 }
+          { reward: 10, weight: 50 },
+          { reward: 8, weight: 10 },
+          { reward: 30, weight: 5 },
+          { reward: 20, weight: 30 }
         ];
         const prizeAward = await that.lottery(prizes);
         // 2023/11/21  发放红包奖励