Ken 3 weeks ago
parent
commit
b05d222f5f
2 changed files with 2 additions and 1 deletions
  1. 0 1
      app/Http/Controllers/admin/Rebate.php
  2. 2 0
      composer.json

+ 0 - 1
app/Http/Controllers/admin/Rebate.php

@@ -42,7 +42,6 @@ class Rebate extends Controller
             $params = request()->validate([
                 'id' => ['required', 'integer', 'min:1'],
             ]);
-            $params['id'];
             $params['status'] = 0;
             $rebate = RebateService::findOne($params);
             if (!$rebate) throw new Exception('数据不存在', HttpStatus::CUSTOM_ERROR);

+ 2 - 0
composer.json

@@ -14,6 +14,7 @@
     "ext-curl": "*",
     "ext-gd": "*",
     "ext-json": "*",
+    "ext-bcmath": "*",
     "endroid/qr-code": "^5.0",
     "firebase/php-jwt": "^6.10",
     "guzzlehttp/guzzle": "^7.2",
@@ -29,6 +30,7 @@
     "simplesoftwareio/simple-qrcode": "^4.2",
     "simplito/elliptic-php": "^1.0",
     "stephenhill/base58": "^1.1"
+
   },
   "require-dev": {
     "fakerphp/faker": "^1.9.1",