quanwei
2025-11-28 3ea53e61cc23fdb3ddf8b38a199ca60a6da8c407
admin/app/common/model/supplier/Supplier.php
@@ -252,5 +252,15 @@
    {
        $this->save(['money' => $this['money'] - $money,'freeze_money'=>$this['freeze_money']+$money]);
    }
    /**
     * 直推供应商多少人
     */
    public function refereeSupplierCount ($referee_id)
    {
        $count = $this->where('referee_id', '=', $referee_id)
            ->where('is_delete', '=', 0)
            ->count();
        return $count;
    }
}