Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bds
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
冷斌
bds
Commits
ae58ae74
Commit
ae58ae74
authored
Apr 26, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c05952b2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
Application/Home/Controller/ApiUserController.class.php
+27
-0
No files found.
Application/Home/Controller/ApiUserController.class.php
View file @
ae58ae74
...
@@ -164,6 +164,33 @@ class ApiUserController extends Controller
...
@@ -164,6 +164,33 @@ class ApiUserController extends Controller
echo
json
(
400
,
'认证信息修改失败!请重试'
,
'error'
);
echo
json
(
400
,
'认证信息修改失败!请重试'
,
'error'
);
}
}
}
}
//修改已提交认证资料 vip
public
function
updApproveVip
()
{
if
(
!
IS_POST
)
{
echo
json
(
402
,
'请求方式有误'
,
'error'
);
die
;}
$rows
=
I
(
'post.'
);
if
(
!
isset
(
$rows
[
'u_id'
])
||
empty
(
$rows
[
'u_id'
]))
{
echo
json
(
401
,
'u_id=NULL'
,
'error'
);
die
;}
$approve
=
M
(
'approve'
);
$file
=
new
FileController
();
//调用多图上传 店铺招牌
$msg
=
$file
->
upload2
();
$ids
=
[];
if
(
$msg
[
'data'
]){
$ids
=
explode
(
','
,
$msg
[
'data'
]);
}
if
(
isset
(
$ids
[
0
]))
{
$data
[
'business_license'
]
=
$ids
[
0
];
}
if
(
isset
(
$ids
[
1
]))
{
$data
[
'contract'
]
=
$ids
[
1
];
}
$data
[
'status'
]
=
0
;
$a_msg
=
$approve
->
where
(
'u_id='
.
$_POST
[
'u_id'
])
->
data
(
$data
)
->
save
();
if
(
$a_msg
)
{
echo
json
(
200
,
'VIP认证信息成功!请等待审核结果!'
,
'success'
);
}
else
{
echo
json
(
400
,
'VIP认证信息修改失败!请重试'
,
'error'
);
}
}
//获取会员信息
//获取会员信息
public
function
getUserInfo
(){
public
function
getUserInfo
(){
if
(
!
IS_GET
){
echo
json
(
'402'
,
'提交方式有误!'
,
'error'
);
exit
;}
if
(
!
IS_GET
){
echo
json
(
'402'
,
'提交方式有误!'
,
'error'
);
exit
;}
...
...
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