Commit 0ec319e0 by 杨树贤

完成用户红包的增删改查和用户红包账单的部分逻辑

parent ec67c539
......@@ -44,7 +44,7 @@ PERM_URL=http://perm.icsales.cc/api/check
PERM_ID=7
PERM_GOURL=http://perm.icsales.cc
ADMIN_GROUP=10000,20000
NOT_AUTH=ApiGoodsList,ApiInquiryIndex,ApiVisitTrend,ApiIndexOne,ApiIndextwo,ApiViolationGoodsList,ApiInquiryList,userIntegralListApi
NOT_AUTH=ApiGoodsList,ApiInquiryIndex,ApiVisitTrend,ApiIndexOne,ApiIndextwo,ApiViolationGoodsList,ApiInquiryList,userIntegralListApi,batchUpdateStatusApi
MENU_ID=7
MENU_URL=http://data.icsales.cc/api/config/
......
<?php
namespace App\Http\Controllers\Api;
use App\Http\Services\IntegralBillService;
use App\Http\Transformers\IntegralBillTransformer;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class IntegralBillsApiController extends Controller
{
private $service;
private $transformer;
public function __construct(IntegralBillService $service, IntegralBillTransformer $transformer)
{
$this->service = $service;
$this->transformer = $transformer;
}
//
public function integralBillListApi(Request $request)
{
$data = $this->service->getIntegralBillList($request->all());
$data = $this->transformer->transform($data);
return $this->apiReturn(0, 'ok', [
'data' => $data['data'],
'count' => $data['count'],
]);
}
}
......@@ -13,8 +13,7 @@ class IntegralsApiController extends Controller
{
public function integralListApi(Request $request, IntegralService $service)
{
$data = $service->getIntegralList('/integrals?' . http_build_query($request->all()));
$data = $service->getIntegralList('/integrals?' . urldecode(http_build_query($request->all())));
$data = $this->transformer($data);
return $this->apiReturn(0, 'ok', [
......
......@@ -13,7 +13,7 @@ class UserIntegralsApiController extends Controller
private $service;
private $transformer;
public function __construct(UserIntegralService $service,UserIntegralTransformer $transformer)
public function __construct(UserIntegralService $service, UserIntegralTransformer $transformer)
{
$this->service = $service;
$this->transformer = $transformer;
......@@ -36,7 +36,7 @@ class UserIntegralsApiController extends Controller
//因为数据库没有存mobile,所以要根据mobile去获取userId
$userId = $this->service->getUserIdByMobile($request->mobile);
$params = array_merge($request->toArray(), ['user_id' => $userId]);
if (isset($params['user_id'])) {
if ($request->has('mobile') && $request->mobile) {
$params['user_id'] = $params['user_id'] ?: 0;
}
unset($params['mobile']);
......@@ -47,9 +47,17 @@ class UserIntegralsApiController extends Controller
public function changeUserIntegralStatusApi(Request $request)
{
$id = $request->id;
$status = $request->exchange_status;
$status = $request->status;
$path = 'user_integrals/' . $id;
$result = $this->service->changeUserIntegralStatus($path, ['exchange_status' => $status]);
$result = $this->service->changeUserIntegralStatus($path, ['status' => $status]);
return $result;
}
public function batchUpdateStatusApi(Request $request)
{
$path = 'user_integrals/batchUpdateStatus';
$result = $this->service->batchUpdateStatus($path, $request->all());
return $result;
}
......
<?php
namespace App\Http\Controllers;
use App\Http\Services\IntegralService;
use App\Http\Services\UserIntegralService;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class IntegralBillsController extends Controller
{
public function Entrance(Request $request, $id = 'index')
{
if ($request->path() == '/') {
$path = 'web/index';
} else {
$path = $request->path();
}
$this->data = [
'menus' => $request->menus,
'header' => $request->user->header,
'username' => $request->user->email,
'useremail' => $request->user->email,
'uri' => '/' . $path,
'id' => $id,
];
return $this->$id($request);
}
public function __call($method, $parameters)
{
return $this->errhtml('NotFind', '没有这个页面');
}
public function integralBillList(Request $request)
{
$this->data['title'] = '红包详细';
//获取该用户的红包信息
// $userIntegralService = new UserIntegralService();
// $userIntegral = $userIntegralService->getUserIntegral($request->user_id);
// $this->data['user_integral'] = array_get($userIntegral,'data');
// dd( $this->data['user_integral']);
$integralService = new IntegralService();
//获取红包列表做tab项
$integrals = array_get($integralService->getIntegralList('/integrals'), 'data');
$this->data['integrals'] = $integrals;
return $this->view();
}
}
......@@ -9,10 +9,10 @@ use Illuminate\Http\Request;
class IntegralsController extends Controller
{
public $service;
private $service;
public function __construct(IntegralService $service) {
public function __construct(IntegralService $service)
{
$this->service = $service;
}
......
......@@ -41,7 +41,7 @@ class UserIntegralsController extends Controller
public function userIntegralList()
{
$this->data['title'] = '用户积分管理';
$this->data['title'] = '用户红包管理';
return $this->view();
}
......
......@@ -26,7 +26,7 @@ class IntegralApiRequest extends FormRequest
return [
'name' => 'required',
'daily_limit' => 'required',
'integral_amount' => 'required',
'amount' => 'required',
];
}
}
......@@ -5,13 +5,16 @@ namespace App\Http\Services;
use GuzzleHttp\Client;
use Illuminate\Support\Facades\Log;
class BaseService
{
private $client;
public function __construct() {
public function __construct()
{
$this->client = new Client([
// 'base_uri' => '192.168.10.10:61009',
// 'base_uri' => '192.168.10.10:61009',
'base_uri' => 'http://ic_server_welfare.test',
'timeout' => 20,
]);
......@@ -22,7 +25,7 @@ class BaseService
$response = $this->client->request('GET', $requestPath);
$data = json_decode($response->getBody()->getContents(), true);
if ($data['errcode'] !== 0) {
ErrorLog($requestPath, $data['errcode'], $data['errmsg']);
Log::Error($requestPath.'---'.$data['errcode'].$data['errmsg']);
}
return $data;
......@@ -35,7 +38,7 @@ class BaseService
$response = $this->client->request('DELETE', $requestPath);
$data = json_decode($response->getBody()->getContents(), true);
if ($data['errcode'] !== 0) {
ErrorLog($requestPath, $data['errcode'], $data['errmsg']);
Log::Error($requestPath.'---'.$data['errcode'].$data['errmsg']);
}
return $data;
......@@ -48,7 +51,7 @@ class BaseService
);
$data = json_decode($response->getBody()->getContents(), true);
if ($data['errcode'] !== 0) {
ErrorLog($requestPath, $data['errcode'], $data['errmsg']);
Log::Error($requestPath.'---'.$data['errcode'].$data['errmsg']);
}
return $data;
......@@ -61,8 +64,9 @@ class BaseService
);
$data = json_decode($response->getBody()->getContents(), true);
if ($data['errcode'] !== 0) {
ErrorLog($requestPath, $data['errcode'], $data['errmsg']);
Log::Error($requestPath.'---'.$data['errcode'].$data['errmsg']);
}
return $data;
}
}
\ No newline at end of file
<?php
namespace App\Http\Services;
class IntegralBillService extends BaseService
{
public function getIntegralBillList($params)
{
$path = '/integral_bills?' . http_build_query($params);
return $this->apiGet($path);
}
}
\ No newline at end of file
......@@ -8,6 +8,13 @@ use App\Model\RedisModel;
class UserIntegralService extends BaseService
{
public function getUserIntegral($userId)
{
$path = '/user_integrals/' . $userId;
return $this->apiGet($path);
}
public function getUserIntegralList($params)
{
$path = '/user_integrals?' . http_build_query($params);
......@@ -41,4 +48,9 @@ class UserIntegralService extends BaseService
return $this->apiPatch($path, $data);
}
public function batchUpdateStatus($path, $data = [])
{
return $this->apiPost($path, $data);
}
}
\ No newline at end of file
<?php
namespace App\Http\Transformers;
use App\Http\Services\UserIntegralService;
use http\Env\Request;
class IntegralBillTransformer
{
protected $service;
public function __construct(UserIntegralService $service)
{
$this->service = $service;
}
public function transform($data)
{
foreach ($data['data'] as &$item) {
$userId = \request()->user_id;
$mobile = $this->service->getUserMobilesFromRedis($userId);
$item['mobile'] = array_get($mobile, $userId);
$item['integral_name'] = array_get($item, 'integral.name');
$item['status'] = $item['status'] ? '成功' : '失败';
$item['add_time'] = date('Y-m-d H:i:s', $item['add_time']);
}
unset($item);
return $data;
}
}
\ No newline at end of file
......@@ -23,7 +23,7 @@ class UserIntegralTransformer
}
foreach ($data['data'] as &$item) {
$item['exchange_status'] = $item['exchange_status'] ? '正常' : '禁用';
$item['status'] = $item['status'] ? '正常' : '禁用';
$mobile = array_get($userMobiles, $item['user_id'], '无');
$item['mobile'] = $mobile;
}
......
function getRequestParams() {
var url = window.location.href;
var theRequest = {};
if (url.indexOf("?") !== -1) {
var str = url.split("?")[1];//获取url中"?"符后的字串
strs = str.split("&");
for (var i = 0; i < strs.length; i++) {
theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
}
}
return theRequest;
}
layui.use(['table', 'form', 'laydate', 'layer', 'element'], function () {
var form = layui.form;
var table = layui.table;
table.render({
elem: '#list'
, skin: 'line'
, url: '/integral_bills/api/integralBillList'
, method: 'get'
, request: {
pageName: 'page'
, limitName: 'page_size'
}
, where: getRequestParams()
, toolbar: '#toolbarLeft'
, defaultToolbar: ['filter']
, loading: true
, cols: [[
{type: 'checkbox'}
, {field: 'mobile', title: '账号'}
, {field: 'integral_name', title: '事件'}
, {field: 'status', title: '执行结果'}
, {field: 'add_time', title: '操作时间',templet:'#add_time'}
]]
, id: 'IntegralBill'
, page: {}
});
//头工具栏事件
table.on('toolbar(UserIntegral)', function (obj) {
var checkStatus = table.checkStatus(obj.config.id);
switch (obj.event) {
case 'batchDisableStatus':
var data = checkStatus.data;
var ids = [];
for (var key in data) {
ids.push(data[key].id);
}
break;
case 'getCheckLength':
var data = checkStatus.data;
layer.msg('选中了:' + data.length + ' 个');
break;
case 'isAll':
layer.msg(checkStatus.isAll ? '全选' : '未全选');
break;
}
});
//监听行工具事件
table.on('tool(UserIntegral)', function (obj) {
var data = obj.data
, layEvent = obj.event;
switch (layEvent) {
case 'disable':
layer.confirm('确定要禁用用户兑换红包?', function (index) {
//向服务端发送禁用指令
$.get('/user_integrals/api/changeUserIntegralStatus', {
id: obj.data.id,
status: 0
}, function (result) {
if (result.errcode === 0) {
layer.msg('禁用成功!');
layer.close(index);
table.reload('Reload');
}
});
});
break;
case 'recover':
layer.confirm('确定要恢复用户兑换红包?', function (index) {
$.get('/user_integrals/api/changeUserIntegralStatus', {
id: obj.data.id,
status: 1
}, function (result) {
if (result.errcode === 0) {
layer.msg('恢复成功!');
layer.close(index);
table.reload('Reload');
}
});
});
break;
case 'flow':
window.location = '/integrals/updateIntegral?id=' + obj.data.id;
break;
}
});
var element = layui.element;
//一些事件监听
element.on('tab(integralTab)', function (data) {
table.reload('IntegralBill', {
where: {
integral_id: this.id,
}
});
});
});
\ No newline at end of file
function getRequestParams() {
var url = location.search;
var theRequest = new Object();
if (url.indexOf("?") != -1) {
var str = url.substr(1);
strs = str.split("&");
for (var i = 0; i < strs.length; i++) {
theRequest[strs[i].split("=")[0]] = decodeURI(strs[i].split("=")[1]);
}
}
return theRequest;
}
layui.use(['table', 'form', 'laydate', 'layer'], function () {
var table = layui.table;
var form = layui.form;
......@@ -6,18 +20,19 @@ layui.use(['table', 'form', 'laydate', 'layer'], function () {
elem: '#list'
, skin: 'line'
, url: '/integrals/api/integralList'
, method: 'get'
, method: 'post'
, request: {
pageName: 'page'
, limitName: 'page_size'
}
, where: getRequestParams()
, toolbar: '#toolbarLeft'
, defaultToolbar: ['filter']
, loading: true
, cols: [[
{field: 'id', title: '序号'}
, {field: 'name', title: '红包名称'}
, {field: 'integral_amount', title: '奖励金额'}
, {field: 'amount', title: '奖励金额'}
, {field: 'daily_limit', title: '每个用户日限', templet: '#title'}
, {field: 'status', title: '配置状态', templet: '#status'}
, {field: 'update_time', title: '配置更新时间', templet: '#update_time'}
......
......@@ -4,15 +4,43 @@ function getRequestParams() {
if (url.indexOf("?") !== -1) {
var str = url.split("?")[1];//获取url中"?"符后的字串
strs = str.split("&");
for(var i = 0; i < strs.length; i ++) {
theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
for (var i = 0; i < strs.length; i++) {
theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
}
}
return theRequest;
}
function changeStatus(checkStatus, status, table) {
var data = checkStatus.data;
var ids = [];
for (var key in data) {
ids.push(data[key].id);
}
$.ajax({
url: '/user_integrals/api/batchUpdateStatusApi',
type: 'post',
data: {ids: ids, status: status},
dataType: 'json',
timeout: 10000,
success: function (res) {
if (!res) return layer.msg('网络错误,请重试', {icon: 5});
if (res.errcode === 0) {
var msg = status ? '批量恢复成功' : '批量禁用成功';
layer.msg(msg);
table.reload('UserIntegral');
}
},
error: function () {
return layer.msg('网络错误,请重试', {icon: 5});
}
})
}
layui.use(['table', 'form', 'laydate', 'layer'], function () {
var table = layui.table;
var form = layui.form;
table.render({
elem: '#UserIntegral'
......@@ -34,10 +62,10 @@ layui.use(['table', 'form', 'laydate', 'layer'], function () {
, {field: 'integral', title: '账户红包'}
, {field: 'exchanged_integral', title: '累计兑换'}
, {field: 'certification_status', title: '认证状态'}
, {field: 'exchange_status', title: '兑换状态', templet: '#exchange_status'}
, {field: 'status', title: '兑换状态', templet: '#status'}
, {field: 'experience', title: '操作', templet: '#operate', fixed: 'right'}
]]
, id: 'Reload'
, id: 'UserIntegral'
, page: {}
});
......@@ -47,15 +75,10 @@ layui.use(['table', 'form', 'laydate', 'layer'], function () {
var checkStatus = table.checkStatus(obj.config.id);
switch (obj.event) {
case 'batchDisableStatus':
var data = checkStatus.data;
var ids = [];
for (var key in data) {
ids.push(data[key].id);
}
changeStatus(checkStatus, 0, table);
break;
case 'getCheckLength':
var data = checkStatus.data;
layer.msg('选中了:' + data.length + ' 个');
case 'batchRecoverStatus':
changeStatus(checkStatus, 1, table);
break;
case 'isAll':
layer.msg(checkStatus.isAll ? '全选' : '未全选');
......@@ -74,12 +97,12 @@ layui.use(['table', 'form', 'laydate', 'layer'], function () {
//向服务端发送禁用指令
$.get('/user_integrals/api/changeUserIntegralStatus', {
id: obj.data.id,
exchange_status: 0
status: 0
}, function (result) {
if (result.errcode === 0) {
layer.msg('禁用成功!');
layer.close(index);
table.reload('Reload');
table.reload('UserIntegral');
}
});
});
......@@ -88,18 +111,18 @@ layui.use(['table', 'form', 'laydate', 'layer'], function () {
layer.confirm('确定要恢复用户兑换红包?', function (index) {
$.get('/user_integrals/api/changeUserIntegralStatus', {
id: obj.data.id,
exchange_status: 1
status: 1
}, function (result) {
if (result.errcode === 0) {
layer.msg('恢复成功!');
layer.close(index);
table.reload('Reload');
table.reload('UserIntegral');
}
});
});
break;
case 'flow':
window.location = '/integrals/updateIntegral?id=' + obj.data.id;
case 'bills':
window.location = '/integral_bills/integralBillList?user_id=' + obj.data.user_id;
break;
}
});
......
......@@ -11,7 +11,7 @@
<div class="layui-form-item">
<label class="layui-form-label">奖励金额</label>
<div class="layui-input-block">
<input type="text" name="integral_amount" lay-verify="required" autocomplete="off"
<input type="text" name="amount" lay-verify="required|number" autocomplete="off"
placeholder="请输入奖励金额"
class="layui-input">
</div>
......@@ -20,7 +20,7 @@
<div class="layui-inline">
<label class="layui-form-label">每个用户日限</label>
<div class="layui-input-inline">
<input type="text" name="daily_limit" lay-verify="required" autocomplete="off" class="layui-input">
<input type="text" name="daily_limit" lay-verify="required|number" autocomplete="off" class="layui-input">
</div>
</div>
</div>
......@@ -37,7 +37,7 @@
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn" lay-submit="" lay-filter="creat_integral">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
{{-- <button type="reset" class="layui-btn layui-btn-primary">重置</button>--}}
</div>
</div>
</div>
......
<div class="layui-card">
{{-- <div class="layui-card-body" style="padding-top: 20px">--}}
{{-- <div class="layui-row">--}}
{{-- <div class="layui-col-sm6 layui-col-md4">--}}
{{-- <div class="layui-card">--}}
{{-- <div class="layui-card-header">--}}
{{-- 用户已得红包--}}
{{-- </div>--}}
{{-- <div class="layui-card-body layuiadmin-card-list">--}}
{{-- <p class="layuiadmin-big-font">{{$user_integral['integral']}}</p>--}}
{{-- </div>--}}
{{-- </div>--}}
{{-- </div>--}}
{{-- <div class="layui-col-sm6 layui-col-md4">--}}
{{-- <div class="layui-card">--}}
{{-- <div class="layui-card-header">--}}
{{-- 已提现红包--}}
{{-- </div>--}}
{{-- <div class="layui-card-body layuiadmin-card-list">--}}
{{-- <p class="layuiadmin-big-font">{{$user_integral['exchanged_integral']}}</p>--}}
{{-- </div>--}}
{{-- </div>--}}
{{-- </div>--}}
{{-- <div class="layui-col-sm6 layui-col-md4">--}}
{{-- <div class="layui-card">--}}
{{-- <div class="layui-card-header">--}}
{{-- 账户剩余红包--}}
{{-- </div>--}}
{{-- <div class="layui-card-body layuiadmin-card-list">--}}
{{-- <p class="layuiadmin-big-font">{{$user_integral['integral']-$user_integral['exchanged_integral']}}</p>--}}
{{-- </div>--}}
{{-- </div>--}}
{{-- </div>--}}
{{-- </div>--}}
<div class="layui-tab layui-tab-brief" lay-filter="integralTab">
<ul class="layui-tab-title">
<li class="layui-this">全部红包</li>
@foreach($integrals as $integral)
<li id="{{array_get($integral,'id')}}">{{array_get($integral,'name')}}</li>
@endforeach
</ul>
</div>
<table class="layui-table" id="list" lay-filter="IntegralBill"></table>
</div>
</div>
......@@ -18,7 +18,7 @@
<button type="submit" class="layui-btn layui-btn-sm">
<i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
</button>
<a type="button" href="/user_integrals/userIntegralList"
<a type="button" href="/integrals/integralList"
class="layui-btn layui-btn-primary layui-btn-sm">
<i class="layui-icon layui-icon-refresh-3" title="重置搜索"></i>
</a>
......@@ -31,8 +31,8 @@
<script type="text/html" id="operate">
<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="setting">设置</a>
{{-- <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>--}}
{{-- <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="setting">设置</a>--}}
</script>
<script type="text/html" id="toolbarLeft">
......
......@@ -13,8 +13,8 @@
<div class="layui-form-item">
<label class="layui-form-label">奖励金额</label>
<div class="layui-input-block">
<input type="text" name="integral_amount" value="{{$integral['integral_amount']}}"
lay-verify="required" autocomplete="off"
<input type="text" name="amount" value="{{$integral['amount']}}"
lay-verify="required|number" autocomplete="off"
placeholder="请输入奖励金额"
class="layui-input">
</div>
......@@ -23,7 +23,7 @@
<div class="layui-inline">
<label class="layui-form-label">每个用户日限</label>
<div class="layui-input-inline">
<input type="text" name="daily_limit" value="{{$integral['daily_limit']}}" lay-verify="required"
<input type="text" name="daily_limit" value="{{$integral['daily_limit']}}" lay-verify="required|number"
autocomplete="off" class="layui-input">
</div>
</div>
......@@ -45,7 +45,7 @@
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn" lay-submit="" lay-filter="update_integral">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
{{-- <button type="reset" class="layui-btn layui-btn-primary">重置</button>--}}
</div>
</div>
</div>
......
......@@ -5,14 +5,14 @@
<div class="layui-inline">
<label class="layui-form-label">注册手机号</label>
<div class="layui-input-inline">
<input type="text" name="mobile" value="{{request()->get('mobile')}}"
<input type="text" name="mobile" lay-verify="number" value="{{request()->get('mobile')}}"
autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-inline">
@inject('statusPresenter','App\Presenters\StatusPresenter')
{!! $statusPresenter->render('exchange_status','兑换状态',request()->get('exchange_status')) !!}
{!! $statusPresenter->render('status','兑换状态',request()->get('status')) !!}
</div>
<div class="layui-inline">
<button type="submit" class="layui-btn layui-btn-sm">
......@@ -31,21 +31,21 @@
</div>
<script type="text/html" id="operate">
@{{# if(d.exchange_status == '正常'){ }}
@{{# if(d.status == '正常'){ }}
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="disable">禁用</a>
@{{# } else { }}
<a class="layui-btn layui-btn-green layui-btn-xs" lay-event="recover">恢复</a>
@{{# } }}
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="setting">明细</a>
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="bills">明细</a>
</script>
<script type="text/html" id="exchange_status">
@{{# if(d.exchange_status == '正常'){ }}
<script type="text/html" id="status">
@{{# if(d.status == '正常'){ }}
<span class="layui-badge-dot layui-bg-blue"></span>
@{{# } else { }}
<span class="layui-badge-dot layui-bg-gray"></span>
@{{# } }}
@{{d.exchange_status}}
@{{d.status}}
</script>
<script type="text/html" id="toolbarLeft">
......
......@@ -25,6 +25,7 @@ Route::group(['middleware' => 'web'], function () {
Route::match(['get', 'post'], '/integrals/{key}', 'IntegralsController@Entrance');
Route::match(['get', 'post'], '/user_integrals/{key}', 'UserIntegralsController@Entrance');
Route::match(['get', 'post'], '/integral_bills/{key}', 'IntegralBillsController@Entrance');
});
Route::get('/time', function () {
......@@ -32,13 +33,15 @@ Route::get('/time', function () {
});
Route::namespace('Api')->group(function () {
Route::get('/integrals/api/integralList', 'IntegralsApiController@integralListApi');
Route::get('/integrals/api/deleteIntegral', 'IntegralsApiController@deleteIntegralApi');
Route::post('/integrals/api/storeIntegralApi', 'IntegralsApiController@storeIntegralApi');
Route::post('/integrals/api/updateIntegralApi', 'IntegralsApiController@updateIntegralApi');
Route::match(['get', 'post'], '/integrals/api/integralList', 'IntegralsApiController@integralListApi');
Route::match(['get', 'post'], '/integrals/api/deleteIntegral', 'IntegralsApiController@deleteIntegralApi');
Route::match(['get', 'post'], '/integrals/api/storeIntegralApi', 'IntegralsApiController@storeIntegralApi');
Route::match(['get', 'post'], '/integrals/api/updateIntegralApi', 'IntegralsApiController@updateIntegralApi');
//用户积分
Route::get('/user_integrals/api/userIntegralList', 'UserIntegralsApiController@userIntegralListApi');
Route::get('/user_integrals/api/changeUserIntegralStatus', 'UserIntegralsApiController@changeUserIntegralStatusApi');
Route::match(['get', 'post'], '/user_integrals/api/userIntegralList', 'UserIntegralsApiController@userIntegralListApi');
Route::match(['get', 'post'], '/user_integrals/api/changeUserIntegralStatus', 'UserIntegralsApiController@changeUserIntegralStatusApi');
Route::match(['get', 'post'], '/integral_bills/api/integralBillList', 'IntegralBillsApiController@integralBillListApi');
Route::match(['get', 'post'], '/user_integrals/api/batchUpdateStatusApi', 'UserIntegralsApiController@batchUpdateStatusApi');
});
......@@ -9,7 +9,9 @@ return array(
'App\\Console\\Kernel' => $baseDir . '/app/Console/Kernel.php',
'App\\Exceptions\\Handler' => $baseDir . '/app/Exceptions/Handler.php',
'App\\Http\\Controllers\\ApiController' => $baseDir . '/app/Http/Controllers/ApiController.php',
'App\\Http\\Controllers\\Api\\IntegralsController' => $baseDir . '/app/Http/Controllers/Api/IntegralsController.php',
'App\\Http\\Controllers\\Api\\IntegralBillsApiController' => $baseDir . '/app/Http/Controllers/Api/IntegralBillsApiController.php',
'App\\Http\\Controllers\\Api\\IntegralsApiController' => $baseDir . '/app/Http/Controllers/Api/IntegralsApiController.php',
'App\\Http\\Controllers\\Api\\UserIntegralsApiController' => $baseDir . '/app/Http/Controllers/Api/UserIntegralsApiController.php',
'App\\Http\\Controllers\\Auth\\ForgotPasswordController' => $baseDir . '/app/Http/Controllers/Auth/ForgotPasswordController.php',
'App\\Http\\Controllers\\Auth\\LoginController' => $baseDir . '/app/Http/Controllers/Auth/LoginController.php',
'App\\Http\\Controllers\\Auth\\RegisterController' => $baseDir . '/app/Http/Controllers/Auth/RegisterController.php',
......@@ -19,9 +21,11 @@ return array(
'App\\Http\\Controllers\\GoodsWebController' => $baseDir . '/app/Http/Controllers/GoodsWebController.php',
'App\\Http\\Controllers\\InquiryApiController' => $baseDir . '/app/Http/Controllers/InquiryApiController.php',
'App\\Http\\Controllers\\InquiryWebController' => $baseDir . '/app/Http/Controllers/InquiryWebController.php',
'App\\Http\\Controllers\\IntegralBillsController' => $baseDir . '/app/Http/Controllers/IntegralBillsController.php',
'App\\Http\\Controllers\\IntegralsController' => $baseDir . '/app/Http/Controllers/IntegralsController.php',
'App\\Http\\Controllers\\OfferApiController' => $baseDir . '/app/Http/Controllers/OfferApiController.php',
'App\\Http\\Controllers\\OfferWebController' => $baseDir . '/app/Http/Controllers/OfferWebController.php',
'App\\Http\\Controllers\\UserIntegralsController' => $baseDir . '/app/Http/Controllers/UserIntegralsController.php',
'App\\Http\\Controllers\\WebController' => $baseDir . '/app/Http/Controllers/WebController.php',
'App\\Http\\Kernel' => $baseDir . '/app/Http/Kernel.php',
'App\\Http\\Middleware\\CheckLogin' => $baseDir . '/app/Http/Middleware/CheckLogin.php',
......@@ -30,11 +34,17 @@ return array(
'App\\Http\\Middleware\\TrimStrings' => $baseDir . '/app/Http/Middleware/TrimStrings.php',
'App\\Http\\Middleware\\TrustProxies' => $baseDir . '/app/Http/Middleware/TrustProxies.php',
'App\\Http\\Middleware\\VerifyCsrfToken' => $baseDir . '/app/Http/Middleware/VerifyCsrfToken.php',
'App\\Http\\Services\\Integral' => $baseDir . '/app/Http/Services/Integral.php',
'App\\Http\\Requests\\IntegralApiRequest' => $baseDir . '/app/Http/Requests/IntegralApiRequest.php',
'App\\Http\\Services\\BaseService' => $baseDir . '/app/Http/Services/BaseService.php',
'App\\Http\\Services\\IntegralBillService' => $baseDir . '/app/Http/Services/IntegralBillService.php',
'App\\Http\\Services\\IntegralService' => $baseDir . '/app/Http/Services/IntegralService.php',
'App\\Http\\Services\\UserIntegralService' => $baseDir . '/app/Http/Services/UserIntegralService.php',
'App\\Http\\Transformers\\UserIntegralTransformer' => $baseDir . '/app/Http/Transformers/UserIntegralTransformer.php',
'App\\Model\\GoodsModel' => $baseDir . '/app/Model/GoodsModel.php',
'App\\Model\\RedisModel' => $baseDir . '/app/Model/RedisModel.php',
'App\\Model\\SkuViolation' => $baseDir . '/app/Model/SkuViolation.php',
'App\\Model\\UUIDModel' => $baseDir . '/app/Model/UUIDModel.php',
'App\\Presenters\\StatusPresenter' => $baseDir . '/app/Presenters/StatusPresenter.php',
'App\\Providers\\AppServiceProvider' => $baseDir . '/app/Providers/AppServiceProvider.php',
'App\\Providers\\AuthServiceProvider' => $baseDir . '/app/Providers/AuthServiceProvider.php',
'App\\Providers\\BroadcastServiceProvider' => $baseDir . '/app/Providers/BroadcastServiceProvider.php',
......
......@@ -377,7 +377,9 @@ class ComposerStaticInit0f2e3b599ee0093c705be10a8ac95745
'App\\Console\\Kernel' => __DIR__ . '/../..' . '/app/Console/Kernel.php',
'App\\Exceptions\\Handler' => __DIR__ . '/../..' . '/app/Exceptions/Handler.php',
'App\\Http\\Controllers\\ApiController' => __DIR__ . '/../..' . '/app/Http/Controllers/ApiController.php',
'App\\Http\\Controllers\\Api\\IntegralsController' => __DIR__ . '/../..' . '/app/Http/Controllers/Api/IntegralsController.php',
'App\\Http\\Controllers\\Api\\IntegralBillsApiController' => __DIR__ . '/../..' . '/app/Http/Controllers/Api/IntegralBillsApiController.php',
'App\\Http\\Controllers\\Api\\IntegralsApiController' => __DIR__ . '/../..' . '/app/Http/Controllers/Api/IntegralsApiController.php',
'App\\Http\\Controllers\\Api\\UserIntegralsApiController' => __DIR__ . '/../..' . '/app/Http/Controllers/Api/UserIntegralsApiController.php',
'App\\Http\\Controllers\\Auth\\ForgotPasswordController' => __DIR__ . '/../..' . '/app/Http/Controllers/Auth/ForgotPasswordController.php',
'App\\Http\\Controllers\\Auth\\LoginController' => __DIR__ . '/../..' . '/app/Http/Controllers/Auth/LoginController.php',
'App\\Http\\Controllers\\Auth\\RegisterController' => __DIR__ . '/../..' . '/app/Http/Controllers/Auth/RegisterController.php',
......@@ -387,9 +389,11 @@ class ComposerStaticInit0f2e3b599ee0093c705be10a8ac95745
'App\\Http\\Controllers\\GoodsWebController' => __DIR__ . '/../..' . '/app/Http/Controllers/GoodsWebController.php',
'App\\Http\\Controllers\\InquiryApiController' => __DIR__ . '/../..' . '/app/Http/Controllers/InquiryApiController.php',
'App\\Http\\Controllers\\InquiryWebController' => __DIR__ . '/../..' . '/app/Http/Controllers/InquiryWebController.php',
'App\\Http\\Controllers\\IntegralBillsController' => __DIR__ . '/../..' . '/app/Http/Controllers/IntegralBillsController.php',
'App\\Http\\Controllers\\IntegralsController' => __DIR__ . '/../..' . '/app/Http/Controllers/IntegralsController.php',
'App\\Http\\Controllers\\OfferApiController' => __DIR__ . '/../..' . '/app/Http/Controllers/OfferApiController.php',
'App\\Http\\Controllers\\OfferWebController' => __DIR__ . '/../..' . '/app/Http/Controllers/OfferWebController.php',
'App\\Http\\Controllers\\UserIntegralsController' => __DIR__ . '/../..' . '/app/Http/Controllers/UserIntegralsController.php',
'App\\Http\\Controllers\\WebController' => __DIR__ . '/../..' . '/app/Http/Controllers/WebController.php',
'App\\Http\\Kernel' => __DIR__ . '/../..' . '/app/Http/Kernel.php',
'App\\Http\\Middleware\\CheckLogin' => __DIR__ . '/../..' . '/app/Http/Middleware/CheckLogin.php',
......@@ -398,11 +402,17 @@ class ComposerStaticInit0f2e3b599ee0093c705be10a8ac95745
'App\\Http\\Middleware\\TrimStrings' => __DIR__ . '/../..' . '/app/Http/Middleware/TrimStrings.php',
'App\\Http\\Middleware\\TrustProxies' => __DIR__ . '/../..' . '/app/Http/Middleware/TrustProxies.php',
'App\\Http\\Middleware\\VerifyCsrfToken' => __DIR__ . '/../..' . '/app/Http/Middleware/VerifyCsrfToken.php',
'App\\Http\\Services\\Integral' => __DIR__ . '/../..' . '/app/Http/Services/Integral.php',
'App\\Http\\Requests\\IntegralApiRequest' => __DIR__ . '/../..' . '/app/Http/Requests/IntegralApiRequest.php',
'App\\Http\\Services\\BaseService' => __DIR__ . '/../..' . '/app/Http/Services/BaseService.php',
'App\\Http\\Services\\IntegralBillService' => __DIR__ . '/../..' . '/app/Http/Services/IntegralBillService.php',
'App\\Http\\Services\\IntegralService' => __DIR__ . '/../..' . '/app/Http/Services/IntegralService.php',
'App\\Http\\Services\\UserIntegralService' => __DIR__ . '/../..' . '/app/Http/Services/UserIntegralService.php',
'App\\Http\\Transformers\\UserIntegralTransformer' => __DIR__ . '/../..' . '/app/Http/Transformers/UserIntegralTransformer.php',
'App\\Model\\GoodsModel' => __DIR__ . '/../..' . '/app/Model/GoodsModel.php',
'App\\Model\\RedisModel' => __DIR__ . '/../..' . '/app/Model/RedisModel.php',
'App\\Model\\SkuViolation' => __DIR__ . '/../..' . '/app/Model/SkuViolation.php',
'App\\Model\\UUIDModel' => __DIR__ . '/../..' . '/app/Model/UUIDModel.php',
'App\\Presenters\\StatusPresenter' => __DIR__ . '/../..' . '/app/Presenters/StatusPresenter.php',
'App\\Providers\\AppServiceProvider' => __DIR__ . '/../..' . '/app/Providers/AppServiceProvider.php',
'App\\Providers\\AuthServiceProvider' => __DIR__ . '/../..' . '/app/Providers/AuthServiceProvider.php',
'App\\Providers\\BroadcastServiceProvider' => __DIR__ . '/../..' . '/app/Providers/BroadcastServiceProvider.php',
......
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