mirror of
https://github.com/v2board/v2board.git
synced 2024-11-14 07:29:13 +08:00
update
This commit is contained in:
parent
d9dcddd536
commit
56713946d7
@ -24,7 +24,9 @@ class AppController extends Controller
|
|||||||
abort(500, '订阅计划不存在');
|
abort(500, '订阅计划不存在');
|
||||||
}
|
}
|
||||||
if ($user->expired_at > time()) {
|
if ($user->expired_at > time()) {
|
||||||
$servers = Server::where('show', 1)->get();
|
$servers = Server::where('show', 1)
|
||||||
|
->orderBy('name')
|
||||||
|
->get();
|
||||||
foreach ($servers as $item) {
|
foreach ($servers as $item) {
|
||||||
$groupId = json_decode($item['group_id']);
|
$groupId = json_decode($item['group_id']);
|
||||||
if (in_array($user->group_id, $groupId)) {
|
if (in_array($user->group_id, $groupId)) {
|
||||||
|
@ -11,6 +11,7 @@ use App\Models\Server;
|
|||||||
use App\Models\Ticket;
|
use App\Models\Ticket;
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
use App\Models\Order;
|
use App\Models\Order;
|
||||||
|
use App\Models\ServerLog;
|
||||||
|
|
||||||
class UserController extends Controller
|
class UserController extends Controller
|
||||||
{
|
{
|
||||||
@ -41,12 +42,6 @@ class UserController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function index (Request $request) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public function save (Request $request) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public function info (Request $request) {
|
public function info (Request $request) {
|
||||||
$user = User::where('id', $request->session()->get('id'))
|
$user = User::where('id', $request->session()->get('id'))
|
||||||
->select([
|
->select([
|
||||||
|
@ -67,6 +67,7 @@ Route::prefix('v1')
|
|||||||
Route::get ('info', 'UserController@info');
|
Route::get ('info', 'UserController@info');
|
||||||
Route::post('changePassword', 'UserController@changePassword');
|
Route::post('changePassword', 'UserController@changePassword');
|
||||||
Route::post('update', 'UserController@update');
|
Route::post('update', 'UserController@update');
|
||||||
|
Route::get ('getTrafficLog', 'UserController@getTrafficLog');
|
||||||
// Order
|
// Order
|
||||||
Route::get ('order', 'OrderController@index');
|
Route::get ('order', 'OrderController@index');
|
||||||
Route::post('order/save', 'OrderController@save');
|
Route::post('order/save', 'OrderController@save');
|
||||||
|
Loading…
Reference in New Issue
Block a user