where('status', '=', 0) ->order(['create_time' => 'asc']) ->paginate(200); } /** * 新增通知记录 * @param $order * @return false|int */ public function add($order) { return $this->save([ 'order_id' => $order['order_id'], 'notify_url' => $order['notify_url'], 'store_id' => 10001, ]); } /** * 修改通知状态 * @param $data * @return bool */ public function sureNotify($data) { return $this->save([ 'status' => $data['status'], 'last_time' => time(), ]) !== false; } }