改进 扣费

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

View File

@ -114,7 +114,7 @@ public function cost($price = null)
]);
}
$this->price = (string)($this->price);
$this->price = intval(log10(abs($this->price)) / 3);;
Cache::decrement($cache_key, $this->price);