seven 1 天之前
父节点
当前提交
0501d4c645
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/Http/Controllers/admin/PaymentOrder.php

+ 4 - 0
app/Http/Controllers/admin/PaymentOrder.php

@@ -49,6 +49,10 @@ class PaymentOrder extends Controller
     public function check()
     {
         $id = request()->input('id');
+        if(empty($id)){
+            return $this->error(HttpStatus::CUSTOM_ERROR,'参数错误');
+
+        }
         try {
             $result = PaymentOrderService::singlePayOrder($id);
             $this->success([],$result['message'] ?? '操作成功');