Commit b8a91d82 by 叶明星

创建兑换名额控制器

parent 60771229
APP_ENV=local APP_ENV=local
APP_DEBUG=true APP_DEBUG=true
APP_KEY=0uUBt7t4fFIttyqkyLxDhLC7gn9361Yt APP_KEY=0uUBt7t4fFIttyqkyLxDhLC7gn9361Yt
APP_TIMEZONE=UTC APP_TIMEZONE=PRC
DB_CONNECTION=mysql DB_CONNECTION=mysql
DB_HOST=192.168.10.10 DB_HOST=192.168.2.232
DB_PORT=3306 DB_PORT=3306
DB_DATABASE=ic_welfare DB_DATABASE=ic_welfare
DB_USERNAME=homestead DB_USERNAME=ic_welfare
DB_PASSWORD=secret DB_PASSWORD=ic_welfare#zsyM
DB_PREFIX=ic_ DB_PREFIX=ic_
CACHE_DRIVER=file CACHE_DRIVER=file
......
<?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
<?php <?php
use App\Http\Middleware\UniqueMiddleware;
use Common\Exceptions\Handler;
require_once __DIR__.'/../vendor/autoload.php'; require_once __DIR__.'/../vendor/autoload.php';
try { try {
...@@ -42,7 +45,8 @@ $app->register(Hhxsv5\LaravelS\Illuminate\LaravelSServiceProvider::class); ...@@ -42,7 +45,8 @@ $app->register(Hhxsv5\LaravelS\Illuminate\LaravelSServiceProvider::class);
$app->singleton( $app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class, Illuminate\Contracts\Debug\ExceptionHandler::class,
App\Exceptions\Handler::class // App\Exceptions\Handler::class
Common\Exceptions\Handler::class
); );
$app->singleton( $app->singleton(
...@@ -61,9 +65,10 @@ $app->singleton( ...@@ -61,9 +65,10 @@ $app->singleton(
| |
*/ */
// $app->middleware([ $app->middleware([
// App\Http\Middleware\ExampleMiddleware::class // App\Http\Middleware\ExampleMiddleware::class
// ]); App\Http\Middleware\UniqueMiddleware::class,
]);
// $app->routeMiddleware([ // $app->routeMiddleware([
// 'auth' => App\Http\Middleware\Authenticate::class, // 'auth' => App\Http\Middleware\Authenticate::class,
...@@ -94,7 +99,10 @@ $app->singleton( ...@@ -94,7 +99,10 @@ $app->singleton(
| can respond to, as well as the controllers that may handle them. | 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([ $app->router->group([
'namespace' => 'App\Http\Controllers', 'namespace' => 'App\Http\Controllers',
], function ($router) { ], function ($router) {
......
common @ cf58bc38
Subproject commit 6a492b76f3938205ed9d94cd12b81d66feea657d Subproject commit cf58bc38ef8bdea9369a73ad4cb0d4118328586d
...@@ -60,3 +60,6 @@ $router->post('/user_exchanges/info', 'UserExchangesController@show'); ...@@ -60,3 +60,6 @@ $router->post('/user_exchanges/info', 'UserExchangesController@show');
$router->post('/user_exchanges/list', 'UserExchangesController@index'); $router->post('/user_exchanges/list', 'UserExchangesController@index');
$router->post('/user_exchanges/update', 'UserExchangesController@update'); $router->post('/user_exchanges/update', 'UserExchangesController@update');
$router->post('/user_exchanges/batchUpdateStatus', 'UserExchangesController@batchUpdateStatus'); $router->post('/user_exchanges/batchUpdateStatus', 'UserExchangesController@batchUpdateStatus');
//抢兑换名额
$router->post('/rob/exchange/quota', 'ExchangeController@create');
...@@ -61,7 +61,6 @@ return array( ...@@ -61,7 +61,6 @@ return array(
'Doctrine\\Common\\Lexer\\' => array($vendorDir . '/doctrine/lexer/lib/Doctrine/Common/Lexer'), 'Doctrine\\Common\\Lexer\\' => array($vendorDir . '/doctrine/lexer/lib/Doctrine/Common/Lexer'),
'Doctrine\\Common\\Inflector\\' => array($vendorDir . '/doctrine/inflector/lib/Doctrine/Common/Inflector'), 'Doctrine\\Common\\Inflector\\' => array($vendorDir . '/doctrine/inflector/lib/Doctrine/Common/Inflector'),
'Doctrine\\Common\\Annotations\\' => array($vendorDir . '/doctrine/annotations/lib/Doctrine/Common/Annotations'), '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'), 'Dingo\\Api\\' => array($vendorDir . '/dingo/api/src'),
'DeepCopy\\' => array($vendorDir . '/myclabs/deep-copy/src/DeepCopy'), 'DeepCopy\\' => array($vendorDir . '/myclabs/deep-copy/src/DeepCopy'),
'Cron\\' => array($vendorDir . '/mtdowling/cron-expression/src/Cron'), 'Cron\\' => array($vendorDir . '/mtdowling/cron-expression/src/Cron'),
......
...@@ -106,7 +106,6 @@ class ComposerStaticInit9c11833987e743dc3f50bdb92ca1aa2a ...@@ -106,7 +106,6 @@ class ComposerStaticInit9c11833987e743dc3f50bdb92ca1aa2a
'Doctrine\\Common\\Lexer\\' => 22, 'Doctrine\\Common\\Lexer\\' => 22,
'Doctrine\\Common\\Inflector\\' => 26, 'Doctrine\\Common\\Inflector\\' => 26,
'Doctrine\\Common\\Annotations\\' => 28, 'Doctrine\\Common\\Annotations\\' => 28,
'Dingo\\Blueprint\\' => 16,
'Dingo\\Api\\' => 10, 'Dingo\\Api\\' => 10,
'DeepCopy\\' => 9, 'DeepCopy\\' => 9,
), ),
...@@ -344,10 +343,6 @@ class ComposerStaticInit9c11833987e743dc3f50bdb92ca1aa2a ...@@ -344,10 +343,6 @@ class ComposerStaticInit9c11833987e743dc3f50bdb92ca1aa2a
array ( array (
0 => __DIR__ . '/..' . '/doctrine/annotations/lib/Doctrine/Common/Annotations', 0 => __DIR__ . '/..' . '/doctrine/annotations/lib/Doctrine/Common/Annotations',
), ),
'Dingo\\Blueprint\\' =>
array (
0 => __DIR__ . '/..' . '/dingo/blueprint/src',
),
'Dingo\\Api\\' => 'Dingo\\Api\\' =>
array ( array (
0 => __DIR__ . '/..' . '/dingo/api/src', 0 => __DIR__ . '/..' . '/dingo/api/src',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment