where('is_delete', '=', 0) ->order(['sort' => 'asc', 'money' => 'desc', 'create_time' => 'desc']) ->select(); } /** * 根据自定义充值金额匹配满足的套餐 * @param $payPrice * @return array|false|\PDOStatement|string|\think\Model */ public function getMatchPlan($payPrice) { return (new static)->where('money', '<=', $payPrice) ->where('is_delete', '=', 0) ->order(['money' => 'desc']) ->find(); } }