| xqd
@@ -28,19 +28,17 @@ class Controller extends BaseController
|
|
|
public function __construct() {
|
|
|
|
|
|
$this->middleware('auth:api', [
|
|
|
- /* 'except' => [
|
|
|
+ 'except' => [
|
|
|
'upload', 'getCode', 'reset', 'login', 'get', 'register', 'alipayNotify', 'wechatpayNotify',
|
|
|
'get', 'area', 'get_province', 'get_city', 'get_county', 'test','/home/index'
|
|
|
-
|
|
|
- ]*/
|
|
|
+ ]
|
|
|
]);
|
|
|
|
|
|
// \DB::connection()->enableQueryLog();
|
|
|
// $queries = \DB::getQueryLog();
|
|
|
// dd($queries);
|
|
|
|
|
|
-// $this->user = Auth::guard('api')->user();
|
|
|
-// dd(\Illuminate\Support\Facades\Auth::user());
|
|
|
+ $this->user = Auth::guard('api')->user();
|
|
|
// if ($this->_user !== null) {
|
|
|
// $this->_user->last_ip = Request::ip();
|
|
|
// }
|