Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
bf0f6ad8
Commit
bf0f6ad8
authored
Oct 10, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b61a0373
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
AccountBalance.php
application/index/controller/AccountBalance.php
+17
-17
No files found.
application/index/controller/AccountBalance.php
View file @
bf0f6ad8
...
...
@@ -34,7 +34,7 @@ class AccountBalance extends Basic
if
(
count
(
$data
)
<=
0
)
{
return
$this
->
response
(
"200"
,
"null"
);
}
$result
[
"list"
]
=
$data
;
$result
[
"list"
]
=
$data
;
$result
[
"total"
]
=
$this
->
s_account_balance
->
getBalanceCount
(
$params
);
return
$this
->
response
(
"200"
,
"success!"
,
$result
);
}
...
...
@@ -46,30 +46,30 @@ class AccountBalance extends Basic
public
function
check
()
{
$params
=
$this
->
params
;
/* $params = array(
"operator_id" => 1,
"operator_name" => "1231",
"transfer_img" => "123123",
"status" => 1,
"id" => 1
);*/
/* $params = array(
"operator_id" => 1,
"operator_name" => "1231",
"transfer_img" => "123123",
"status" => 1,
"id" => 1
);*/
if
(
empty
(
$params
[
"operator_id"
])
||
empty
(
$params
[
"operator_name"
])
||
empty
(
$params
[
"id"
])
||
empty
(
$params
[
"transfer_img"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
$id
=
$params
[
"id"
];
$operator_id
=
$params
[
"operator_id"
];
$id
=
$params
[
"id"
];
$operator_id
=
$params
[
"operator_id"
];
$operator_name
=
$params
[
"operator_name"
];
$transfer_img
=
$params
[
"transfer_img"
];
$status
=
$params
[
"status"
];
$transfer_img
=
$params
[
"transfer_img"
];
$status
=
$params
[
"status"
];
if
(
!
$status
&&
(
$status
!=
1
||
$status
!=
2
))
{
return
$this
->
response
(
"101"
,
"审核状态错误"
);
}
$id
=
$this
->
s_account_balance
->
check
(
$id
,
$operator_id
,
$operator_name
,
$transfer_img
,
$status
);
if
(
$id
>
0
)
{
return
$this
->
response
(
"200"
,
"success"
);
}
else
{
return
$this
->
response
(
"101"
,
"error"
);
$id
=
$this
->
s_account_balance
->
check
(
$id
,
$operator_id
,
$operator_name
,
$transfer_img
,
$status
);
if
(
$id
>
0
)
{
return
$this
->
response
(
"200"
,
"success"
);
}
else
{
return
$this
->
response
(
"101"
,
"error"
);
}
}
...
...
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