feat(UserSignLogic): 修改用户签到逻辑,增加用户充值查询

This commit is contained in:
mkm 2024-07-05 11:52:08 +08:00
parent 380e121726
commit f9114271ec

View File

@ -5,6 +5,7 @@ namespace app\common\logic;
use app\common\logic\BaseLogic;
use app\common\model\user\User;
use app\common\model\user_recharge\UserRecharge;
use app\common\model\user_sign\UserSign;
use app\common\model\user_sign_log\UserSignLog;
@ -40,7 +41,7 @@ class UserSignLogic extends BaseLogic
if($total_vip==0){
return false;
}
$count = UserSign::where('uid', $order->uid)->count();
$count = UserRecharge::where('uid', $order->uid)->count();
if ($count == 0 && in_array($user_ship, [1, 2, 3, 5, 6, 7, 8])) {
//首充
$write = self::write($order, $total_vip, 0, 1, 9);