This commit is contained in:
2025-08-14 17:19:26 +08:00
parent 30abda5ba7
commit 281248fd04
245 changed files with 21051 additions and 61 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace app\api\model;
use app\common\library\DatabaseRoute;
use app\common\model\Common;
use ba\Random;
use think\facade\Db;
use think\Model;
class InviteAchievement extends Model
{
public static function GetByInviteAchievementInvite($user_id)
{
$db = DatabaseRoute::getDb('invite_achievement', $user_id);
$count = $db->where(['state' => 1, 'user_id' => $user_id])->count();
return $count;
}
}