mirror of
https://github.com/v2board/v2board.git
synced 2025-06-15 22:27:50 +08:00
update: add client token in cache
This commit is contained in:
@ -6,6 +6,8 @@ use App\Jobs\OrderHandleJob;
|
||||
use App\Models\Order;
|
||||
use App\Models\Plan;
|
||||
use App\Models\User;
|
||||
use App\Utils\CacheKey;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class OrderService
|
||||
@ -79,6 +81,8 @@ class OrderService
|
||||
abort(500, '开通失败');
|
||||
}
|
||||
|
||||
Cache::put(CacheKey::get('SUBSCRIBE_TOKEN', $this->user->token), 1, 120);
|
||||
|
||||
DB::commit();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user