改进 扣费

This commit is contained in:
iVampireSP.com 2022-09-09 20:25:24 +08:00
parent 3035a57301
commit 47edd6cf73
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -3,7 +3,6 @@
namespace App\Models;
use App\Models\Module\Module;
use App\Exceptions\CommonException;
use App\Models\WorkOrder\WorkOrder;
use Illuminate\Support\Facades\Cache;
// use Illuminate\Database\Eloquent\SoftDeletes;
@ -114,7 +113,7 @@ public function cost($price = null)
]);
}
$this->price = intval(log10(abs($this->price)) / 3);;
$this->price = intval(log10(abs($this->price)) / 3);
Cache::decrement($cache_key, $this->price);