1
0

提交代码

This commit is contained in:
2020-08-06 14:45:56 +08:00
commit 9d0d5f4be9
361 changed files with 36445 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Agent\Controllers;
use Auth;
use Illuminate\Http\Request;
/**
* 账户管理
*/
class AccountController extends Controller
{
public function __construct(Request $request)
{
view()->share('app_title', '账户管理');
}
public function index(Request $request)
{
$user = Auth::guard('agent')->user();
$lists = $user->accountLogs()->paginate();
if ($request->isMethod('POST')) {
if ($lists->isNotEmpty()) {
$html = response(view('Agent::account.more', compact('lists')))->getContent();
return $this->success($html);
} else {
return $this->error('没有数据了');
}
} else {
return view('Agent::account.index', compact('user', 'lists'));
}
}
}