WIN-2308041133\Administrator 4 months ago
parent
commit
6ed2723947
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/common/model/user/AwardLake.php

+ 3 - 0
app/common/model/user/AwardLake.php

@@ -5,6 +5,7 @@ namespace app\common\model\user;
 use app\common\model\BaseModel;
 use app\common\model\BaseModel;
 use app\common\repositories\user\AwardIntegralPriceRepository;
 use app\common\repositories\user\AwardIntegralPriceRepository;
 use app\common\repositories\user\UserBillRepository;
 use app\common\repositories\user\UserBillRepository;
+use app\common\repositories\user\UserRepository;
 use think\db\exception\DataNotFoundException;
 use think\db\exception\DataNotFoundException;
 use think\db\exception\DbException;
 use think\db\exception\DbException;
 use think\db\exception\ModelNotFoundException;
 use think\db\exception\ModelNotFoundException;
@@ -154,6 +155,8 @@ class AwardLake extends BaseModel
 
 
             //todo end
             //todo end
             $real_send = bcadd($real_send, $every, 2);
             $real_send = bcadd($real_send, $every, 2);
+            $UserRepository = app()->make(UserRepository::class);
+            $UserRepository->checkAward($user['uid']);
         }
         }
         AwardLakeLog::expend($lake['id'], 'send', $real_send, 0, '奖池分红');
         AwardLakeLog::expend($lake['id'], 'send', $real_send, 0, '奖池分红');
         self::where('id', $lake['id'])->update(['send_time' => time()]);
         self::where('id', $lake['id'])->update(['send_time' => time()]);