Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_server_welfare
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b8a91d82
authored
Aug 20, 2019
by
叶明星
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
创建兑换名额控制器
parent
60771229
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
15 deletions
.env
app/Http/Controllers/ExchangeController.php
bootstrap/app.php
common
routes/web.php
vendor/composer/autoload_psr4.php
vendor/composer/autoload_static.php
.env
View file @
b8a91d82
APP_ENV=local
APP_DEBUG=true
APP_KEY=0uUBt7t4fFIttyqkyLxDhLC7gn9361Yt
APP_TIMEZONE=
UT
C
APP_TIMEZONE=
PR
C
DB_CONNECTION=mysql
DB_HOST=192.168.
10.10
DB_HOST=192.168.
2.232
DB_PORT=3306
DB_DATABASE=ic_welfare
DB_USERNAME=
homestead
DB_PASSWORD=
secret
DB_USERNAME=
ic_welfare
DB_PASSWORD=
ic_welfare#zsyM
DB_PREFIX=ic_
CACHE_DRIVER=file
...
...
app/Http/Controllers/ExchangeController.php
0 → 100644
View file @
b8a91d82
<?php
namespace
App\Http\Controllers
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\DB
;
class
ExchangeController
extends
Controller
{
//用于抢兑换名额
public
function
create
(
Request
$request
){
$Field
=
[
'user_id'
,
''
];
}
}
\ No newline at end of file
bootstrap/app.php
View file @
b8a91d82
<?php
use
App\Http\Middleware\UniqueMiddleware
;
use
Common\Exceptions\Handler
;
require_once
__DIR__
.
'/../vendor/autoload.php'
;
try
{
...
...
@@ -42,7 +45,8 @@ $app->register(Hhxsv5\LaravelS\Illuminate\LaravelSServiceProvider::class);
$app
->
singleton
(
Illuminate\Contracts\Debug\ExceptionHandler
::
class
,
App\Exceptions\Handler
::
class
// App\Exceptions\Handler::class
Common\Exceptions\Handler
::
class
);
$app
->
singleton
(
...
...
@@ -61,9 +65,10 @@ $app->singleton(
|
*/
//
$app->middleware([
$app
->
middleware
([
// App\Http\Middleware\ExampleMiddleware::class
// ]);
App\Http\Middleware\UniqueMiddleware
::
class
,
]);
// $app->routeMiddleware([
// 'auth' => App\Http\Middleware\Authenticate::class,
...
...
@@ -94,7 +99,10 @@ $app->singleton(
| can respond to, as well as the controllers that may handle them.
|
*/
$app
->
configure
(
'system'
);
LogReport
::
$suffix
=
'_'
.
env
(
'LARAVELS_LISTEN_PORT'
,
''
);
LogReport
::
$app_name
=
env
(
'ELK_NAME'
);
LogReport
::
$log_path
=
realpath
(
__DIR__
.
'/../'
)
.
'/storage/logs/LogReport/'
;
$app
->
router
->
group
([
'namespace'
=>
'App\Http\Controllers'
,
],
function
(
$router
)
{
...
...
common
@
cf58bc38
Subproject commit
6a492b76f3938205ed9d94cd12b81d66feea657
d
Subproject commit
cf58bc38ef8bdea9369a73ad4cb0d4118328586
d
routes/web.php
View file @
b8a91d82
...
...
@@ -60,3 +60,6 @@ $router->post('/user_exchanges/info', 'UserExchangesController@show');
$router
->
post
(
'/user_exchanges/list'
,
'UserExchangesController@index'
);
$router
->
post
(
'/user_exchanges/update'
,
'UserExchangesController@update'
);
$router
->
post
(
'/user_exchanges/batchUpdateStatus'
,
'UserExchangesController@batchUpdateStatus'
);
//抢兑换名额
$router
->
post
(
'/rob/exchange/quota'
,
'ExchangeController@create'
);
vendor/composer/autoload_psr4.php
View file @
b8a91d82
...
...
@@ -61,7 +61,6 @@ return array(
'Doctrine\\Common\\Lexer\\'
=>
array
(
$vendorDir
.
'/doctrine/lexer/lib/Doctrine/Common/Lexer'
),
'Doctrine\\Common\\Inflector\\'
=>
array
(
$vendorDir
.
'/doctrine/inflector/lib/Doctrine/Common/Inflector'
),
'Doctrine\\Common\\Annotations\\'
=>
array
(
$vendorDir
.
'/doctrine/annotations/lib/Doctrine/Common/Annotations'
),
'Dingo\\Blueprint\\'
=>
array
(
$vendorDir
.
'/dingo/blueprint/src'
),
'Dingo\\Api\\'
=>
array
(
$vendorDir
.
'/dingo/api/src'
),
'DeepCopy\\'
=>
array
(
$vendorDir
.
'/myclabs/deep-copy/src/DeepCopy'
),
'Cron\\'
=>
array
(
$vendorDir
.
'/mtdowling/cron-expression/src/Cron'
),
...
...
vendor/composer/autoload_static.php
View file @
b8a91d82
...
...
@@ -106,7 +106,6 @@ class ComposerStaticInit9c11833987e743dc3f50bdb92ca1aa2a
'Doctrine\\Common\\Lexer\\'
=>
22
,
'Doctrine\\Common\\Inflector\\'
=>
26
,
'Doctrine\\Common\\Annotations\\'
=>
28
,
'Dingo\\Blueprint\\'
=>
16
,
'Dingo\\Api\\'
=>
10
,
'DeepCopy\\'
=>
9
,
),
...
...
@@ -344,10 +343,6 @@ class ComposerStaticInit9c11833987e743dc3f50bdb92ca1aa2a
array
(
0
=>
__DIR__
.
'/..'
.
'/doctrine/annotations/lib/Doctrine/Common/Annotations'
,
),
'Dingo\\Blueprint\\'
=>
array
(
0
=>
__DIR__
.
'/..'
.
'/dingo/blueprint/src'
,
),
'Dingo\\Api\\'
=>
array
(
0
=>
__DIR__
.
'/..'
.
'/dingo/api/src'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment