Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
introducer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
introducer
Commits
96cf75aa
Commit
96cf75aa
authored
May 07, 2024
by
董先生
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提现核销
parent
02472bf8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
1 deletion
+66
-1
application/admin/controller/users/Withdraw.php
application/admin/controller/users/Withdraw.php
+52
-0
application/admin/lang/zh-cn/users/withdraw.php
application/admin/lang/zh-cn/users/withdraw.php
+1
-0
public/assets/js/backend/users/withdraw.js
public/assets/js/backend/users/withdraw.js
+13
-1
No files found.
application/admin/controller/users/Withdraw.php
View file @
96cf75aa
...
@@ -376,4 +376,56 @@ class Withdraw extends Backend
...
@@ -376,4 +376,56 @@ class Withdraw extends Backend
$this
->
view
->
assign
(
"row"
,
$row
);
$this
->
view
->
assign
(
"row"
,
$row
);
return
$this
->
view
->
fetch
();
return
$this
->
view
->
fetch
();
}
}
/**
* 核销提现
*/
public
function
verification
(
$id
=
''
,
$status
=
-
1
)
{
$row
=
$this
->
model
->
get
(
$id
);
if
(
!
$row
)
{
$this
->
error
(
__
(
'No Results were found'
));
}
$adminIds
=
$this
->
getDataLimitAdminIds
();
if
(
is_array
(
$adminIds
))
{
if
(
!
in_array
(
$row
[
$this
->
dataLimitField
],
$adminIds
))
{
$this
->
error
(
__
(
'You have no permission'
));
}
}
if
(
$this
->
request
->
isPost
())
{
$params
=
$this
->
request
->
Post
(
"row/a"
);
if
(
$params
)
{
$params
=
$this
->
preExcludeFields
(
$params
);
$result
=
false
;
Db
::
startTrans
();
try
{
//是否采用模型验证
if
(
$this
->
modelValidate
)
{
$name
=
str_replace
(
"
\\
model
\\
"
,
"
\\
validate
\\
"
,
get_class
(
$this
->
model
));
$validate
=
is_bool
(
$this
->
modelValidate
)
?
(
$this
->
modelSceneValidate
?
$name
.
'.edit'
:
$name
)
:
$this
->
modelValidate
;
$row
->
validateFailException
(
true
)
->
validate
(
$validate
);
}
$params
[
'status'
]
=
$status
;
Db
::
commit
();
}
catch
(
ValidateException
$e
)
{
Db
::
rollback
();
$this
->
error
(
$e
->
getMessage
());
}
catch
(
PDOException
$e
)
{
Db
::
rollback
();
$this
->
error
(
$e
->
getMessage
());
}
catch
(
Exception
$e
)
{
Db
::
rollback
();
$this
->
error
(
$e
->
getMessage
());
}
if
(
$result
!==
false
)
{
$this
->
success
(
"核销成功"
);
}
else
{
$this
->
error
(
__
(
'核销失败'
));
}
}
$this
->
error
(
__
(
'Parameter %s can not be empty'
,
''
));
}
$this
->
view
->
assign
(
"row"
,
$row
);
return
$this
->
view
->
fetch
();
}
}
}
application/admin/lang/zh-cn/users/withdraw.php
View file @
96cf75aa
...
@@ -13,6 +13,7 @@ return [
...
@@ -13,6 +13,7 @@ return [
'Status -1'
=>
'已拒绝'
,
'Status -1'
=>
'已拒绝'
,
'Status 0'
=>
'待审核'
,
'Status 0'
=>
'待审核'
,
'Status 1'
=>
'已通过'
,
'Status 1'
=>
'已通过'
,
'Status 2'
=>
'已核销'
,
'Start_time'
=>
'提现时间'
,
'Start_time'
=>
'提现时间'
,
'End_time'
=>
'审核时间'
,
'End_time'
=>
'审核时间'
,
'Withdraw_way'
=>
'提现方式'
,
'Withdraw_way'
=>
'提现方式'
,
...
...
public/assets/js/backend/users/withdraw.js
View file @
96cf75aa
...
@@ -74,7 +74,19 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
...
@@ -74,7 +74,19 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
hidden
:
function
(
row
)
{
hidden
:
function
(
row
)
{
return
row
.
status
==
0
?
false
:
true
;
return
row
.
status
==
0
?
false
:
true
;
},
},
},
},{
name
:
'
verification
'
,
text
:
__
(
'
核销
'
),
title
:
__
(
'
核销
'
),
classname
:
'
btn btn-xs btn-warning btn-ajax
'
,
url
:
function
(
row
)
{
return
'
users/Withdraw/audit?id=
'
+
row
.
id
+
'
&status=2
'
;
},
refresh
:
true
,
hidden
:
function
(
row
)
{
return
row
.
status
==
0
?
false
:
true
;
},
}
],}
],}
]
]
]
]
...
...
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