where('order_id', '=', $orderId) ->where('order_type', '=', $orderType) ->order(['create_time' => 'desc']) ->find(); } /** * 记录prepay_id使用次数 * @return int|true * @throws \think\Exception */ public function updateUsedTimes() { return $this->setInc('used_times', 1); } }