|
@@ -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()]);
|