Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_welfare_api
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
58a6eccc
authored
Aug 29, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加兑换记录统一增加
parent
5c44caf3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
app/Http/Controllers/UserExchangesController.php
app/Services/UserExchangeService.php
app/Http/Controllers/UserExchangesController.php
View file @
58a6eccc
...
...
@@ -70,7 +70,7 @@ class UserExchangesController extends Controller
//如果类型是微信转账,则前提是要两个好友助力完成才能成功
//添加兑换记录并且提现
$result
=
$service
->
addUserExchange
AndQuota
(
$data
);
$result
=
$service
->
addUserExchange
(
$data
);
//这里直接使用服务返回的错误码,对应的错误码在language.php
if
(
$result
[
'errcode'
]
==
0
)
{
...
...
app/Services/UserExchangeService.php
View file @
58a6eccc
...
...
@@ -4,6 +4,9 @@
namespace
App\Services
;
use
Carbon\Carbon
;
use
Common\Model\RedisModel
;
class
UserExchangeService
{
public
function
getUserExchangeList
(
$map
=
[])
...
...
@@ -17,10 +20,12 @@ class UserExchangeService
public
function
addUserExchange
(
$map
=
[])
{
$url
=
config
(
'website.BaseUrl'
)
.
'/rob/exchange/quota'
;
$result
=
reportCurl
(
$url
,
$map
,
true
);
$result
=
json_decode
(
$result
,
true
);
return
$result
;
}
}
\ 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