Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cdz_pay_v2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨苏杭
cdz_pay_v2
Commits
ae2a7c90
Commit
ae2a7c90
authored
Nov 30, 2018
by
yangsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提测
parent
367fd873
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
app/Http/Controllers/V1/Wx/AccessController.php
+3
-3
lib/transformer/ChargerOrderTransformer.php
+5
-2
No files found.
app/Http/Controllers/V1/Wx/AccessController.php
View file @
ae2a7c90
...
@@ -28,10 +28,10 @@ class AccessController extends Controller
...
@@ -28,10 +28,10 @@ class AccessController extends Controller
/**
/**
* 获取用户信息
* 获取用户信息
* @param Request $request
* @param Request
$request
* @param WebGrant $wxWebGrant
* @param WebGrant $wxWebGrant
* @return json token
* @return json token
* @param Request $request
* @param Request
$request
* @param WebGrant $wxWebGrant
* @param WebGrant $wxWebGrant
* @return \Illuminate\Http\RedirectResponse|\Laravel\Lumen\Http\Redirector
* @return \Illuminate\Http\RedirectResponse|\Laravel\Lumen\Http\Redirector
* @throws \GuzzleHttp\Exception\GuzzleException
* @throws \GuzzleHttp\Exception\GuzzleException
...
@@ -65,7 +65,7 @@ class AccessController extends Controller
...
@@ -65,7 +65,7 @@ class AccessController extends Controller
if
(
$wxUser
->
getSubscribe
()
===
0
)
{
if
(
$wxUser
->
getSubscribe
()
===
0
)
{
abort
(
40
0
,
'请先关注微信公众号'
);
abort
(
40
3
,
'请先关注微信公众号'
);
}
}
$wxUserModel
=
WxUserModel
::
where
(
'openid'
,
$openid
)
->
first
();
$wxUserModel
=
WxUserModel
::
where
(
'openid'
,
$openid
)
->
first
();
...
...
lib/transformer/ChargerOrderTransformer.php
View file @
ae2a7c90
...
@@ -10,9 +10,10 @@ namespace Lib\transformer;
...
@@ -10,9 +10,10 @@ namespace Lib\transformer;
use
Illuminate\Pagination\LengthAwarePaginator
;
use
Illuminate\Pagination\LengthAwarePaginator
;
use
Illuminate\Support\Facades\Log
;
use
League\Fractal\TransformerAbstract
;
use
League\Fractal\TransformerAbstract
;
class
ChargerOrderTransformer
extends
TransformerAbstract
class
ChargerOrderTransformer
extends
TransformerAbstract
{
{
/**
/**
...
@@ -45,6 +46,7 @@ class ChargerOrderTransformer extends TransformerAbstract
...
@@ -45,6 +46,7 @@ class ChargerOrderTransformer extends TransformerAbstract
{
{
$result
=
$lengthAwarePaginator
->
toArray
();
$result
=
$lengthAwarePaginator
->
toArray
();
Log
::
debug
(
$result
);
return
$result
;
return
$result
;
...
@@ -99,5 +101,5 @@ class ChargerOrderTransformer extends TransformerAbstract
...
@@ -99,5 +101,5 @@ class ChargerOrderTransformer extends TransformerAbstract
$this
->
resultMessage
=
$resultMessage
;
$this
->
resultMessage
=
$resultMessage
;
}
}
}
}
\ No newline at end of file
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