Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_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
e2e928a0
authored
Sep 18, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复count不存在的bug
parent
6191a5be
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
app/Http/Controllers/Api/ExchangeSettingsApiController.php
app/Http/Controllers/Api/IntegralBillsApiController.php
app/Http/Controllers/Api/UserExchangesApiController.php
app/Http/Controllers/Api/UserIntegralsApiController.php
app/Http/Controllers/Api/ExchangeSettingsApiController.php
View file @
e2e928a0
...
@@ -24,7 +24,7 @@ class ExchangeSettingsApiController extends Controller
...
@@ -24,7 +24,7 @@ class ExchangeSettingsApiController extends Controller
return
$this
->
apiReturn
(
0
,
'ok'
,
[
return
$this
->
apiReturn
(
0
,
'ok'
,
[
'data'
=>
$data
[
'data'
],
'data'
=>
$data
[
'data'
],
'count'
=>
$data
[
'count'
]
,
'count'
=>
array_get
(
$data
,
'count'
,
0
)
,
]);
]);
}
}
...
...
app/Http/Controllers/Api/IntegralBillsApiController.php
View file @
e2e928a0
...
@@ -27,7 +27,7 @@ class IntegralBillsApiController extends Controller
...
@@ -27,7 +27,7 @@ class IntegralBillsApiController extends Controller
return
$this
->
apiReturn
(
0
,
'ok'
,
[
return
$this
->
apiReturn
(
0
,
'ok'
,
[
'data'
=>
$data
[
'data'
],
'data'
=>
$data
[
'data'
],
'count'
=>
$data
[
'count'
]
,
'count'
=>
array_get
(
$data
,
'count'
,
0
)
,
]);
]);
}
}
}
}
app/Http/Controllers/Api/UserExchangesApiController.php
View file @
e2e928a0
...
@@ -32,7 +32,7 @@ class UserExchangesApiController extends Controller
...
@@ -32,7 +32,7 @@ class UserExchangesApiController extends Controller
return
$this
->
apiReturn
(
0
,
'ok'
,
[
return
$this
->
apiReturn
(
0
,
'ok'
,
[
'data'
=>
$data
[
'data'
],
'data'
=>
$data
[
'data'
],
'count'
=>
$data
[
'count'
]
,
'count'
=>
array_get
(
$data
,
'count'
,
0
)
,
]);
]);
}
}
...
@@ -44,7 +44,7 @@ class UserExchangesApiController extends Controller
...
@@ -44,7 +44,7 @@ class UserExchangesApiController extends Controller
return
$this
->
apiReturn
(
0
,
'ok'
,
[
return
$this
->
apiReturn
(
0
,
'ok'
,
[
'data'
=>
$data
[
'data'
],
'data'
=>
$data
[
'data'
],
'count'
=>
$data
[
'count'
]
,
'count'
=>
array_get
(
$data
,
'count'
,
0
)
,
]);
]);
}
}
...
...
app/Http/Controllers/Api/UserIntegralsApiController.php
View file @
e2e928a0
...
@@ -27,7 +27,7 @@ class UserIntegralsApiController extends Controller
...
@@ -27,7 +27,7 @@ class UserIntegralsApiController extends Controller
return
$this
->
apiReturn
(
0
,
'ok'
,
[
return
$this
->
apiReturn
(
0
,
'ok'
,
[
'data'
=>
$data
[
'data'
],
'data'
=>
$data
[
'data'
],
'count'
=>
$data
[
'count'
]
,
'count'
=>
array_get
(
$data
,
'count'
,
0
)
,
]);
]);
}
}
...
...
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