💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` use think\facade\Db; ... $count_res = Db::connect('zs')->table('member_luck_log') ->where('set_id', $set_id) ->where('set_item_id', $item_id) ->field(Db::raw('COUNT(distinct(`vipcode`)) as `count_sum`')) ->find(); echo $count_res['count_sum']; ```