validate([ 'page' => ['nullable', 'integer', 'min:1'], 'limit' => ['nullable', 'integer', 'min:1'], 'type' => ['required', 'integer', 'in:0,1,2'], 'order_no' => ['nullable', 'string'], 'status' => ['nullable', 'integer', 'in:0,1,2,3'], ]); $result = PaymentOrderService::paginate($params); } catch (ValidationException $e) { return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first()); } catch (Exception $e) { return $this->error(intval($e->getCode())); } return $this->success($result); } /** * @description: 查询订单的支付情况 * @return {*} */ public function check() { $id = request()->input('id'); if(empty($id)){ return $this->error(HttpStatus::CUSTOM_ERROR,'参数错误'); } try { $result = PaymentOrderService::singlePayOrder($id); $this->success([],$result['msg'] ?? '操作成功'); } catch (Exception $e) { return $this->error(intval($e->getCode())); } return $this->success([],$result['msg'] ?? '操作成功'); } }