add
This commit is contained in:
19
app/api/model/InviteAchievement.php
Normal file
19
app/api/model/InviteAchievement.php
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user