Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
haishi
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
冷斌
haishi
Commits
baa5285e
Commit
baa5285e
authored
Feb 22, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
bca8d861
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
19 deletions
+20
-19
admin/themes/simplebootx/Admin/Userauth/edit3.html
+16
-16
application/Admin/Controller/UserauthController.class.php
+4
-3
No files found.
admin/themes/simplebootx/Admin/Userauth/edit3.html
View file @
baa5285e
...
...
@@ -17,22 +17,6 @@
<span
class=
"form-required"
>
*
</span>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
支付宝
</label>
<div
class=
"controls"
>
<input
type=
"hidden"
name=
"alipay_pay"
value=
"{$auth['alipay_pay']}"
readonly
>
<img
src=
"{$auth['alipay_pay']}"
width=
"135"
style=
"cursor: hand"
>
<span
class=
"form-required"
>
*
</span>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
微信
</label>
<div
class=
"controls"
>
<input
type=
"hidden"
name=
"wx_pay"
value=
"{$auth['wx_pay']}"
readonly
>
<img
src=
"{$auth['wx_pay']}"
width=
"135"
style=
"cursor: hand"
>
<span
class=
"form-required"
>
*
</span>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
支付宝
</label>
...
...
@@ -51,6 +35,22 @@
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
微信
</label>
<div
class=
"controls"
>
<div
>
<input
type=
"hidden"
name=
"wx_pay"
id=
"thumb3"
value=
"{$auth['wx_pay']}"
>
<a
href=
"javascript:void(0);"
onclick=
"flashuploadcut('thumb_images', '附件上传','thumb3',thumb_images,'1,jpg|jpeg|gif|png|bmp,1,,,1','','','');return false;"
>
<if
condition=
"$auth['wx_pay'] neq ''"
>
<img
src=
"{$auth['wx_pay']}"
id=
"thumb3_preview"
width=
"135"
style=
"cursor: hand"
/>
<else/>
<img
src=
"__TMPL__Public/assets/images/default-thumbnail.png"
id=
"thumb3_preview"
width=
"135"
style=
"cursor: hand"
/>
</if>
</a>
<input
type=
"button"
class=
"btn btn-small"
onclick=
"$('#thumb3_preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#thumb3').val('');return false;"
value=
"取消图片"
>
</div>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
审核状态
</label>
...
...
application/Admin/Controller/UserauthController.class.php
View file @
baa5285e
...
...
@@ -319,13 +319,14 @@ class UserauthController extends AdminbaseController
$result
=
$auth
->
where
(
"uid='
{
$_POST
[
'uid'
]
}
'"
)
->
save
([
'status'
=>
$_POST
[
'status'
],
'reason'
=>
$_POST
[
'reason'
],
'alipay_pay'
=>
$_POST
[
'alipay_pay'
],
'wx_pay'
=>
$_POST
[
'wx_pay'
],
'uptime'
=>
time
()
]);
if
(
$result
)
{
$data
=
$auth
->
where
(
"uid='
{
$_POST
[
'uid'
]
}
'"
)
->
find
();
M
(
"users"
)
->
where
(
"id='
{
$_POST
[
'uid'
]
}
'"
)
->
save
([
'alipay_pay'
=>
$
data
[
'alipay_pay'
],
'wx_pay'
=>
$
data
[
'wx_pay'
],
'alipay_pay'
=>
$
_POST
[
'alipay_pay'
],
'wx_pay'
=>
$
_POST
[
'wx_pay'
],
]);
$this
->
success
(
'修改成功'
,
U
(
'Userauth/index3'
));
}
else
{
...
...
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