Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
quxiu
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
冷斌
quxiu
Commits
2eba205a
Commit
2eba205a
authored
May 10, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
502e0714
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
6 deletions
+59
-6
application/Appapi/Controller/ProfitController.class.php
+58
-4
themes/simplebootx/Appapi/Profit/auth.html
+1
-2
No files found.
application/Appapi/Controller/ProfitController.class.php
View file @
2eba205a
...
@@ -52,7 +52,7 @@ class ProfitController extends HomebaseController
...
@@ -52,7 +52,7 @@ class ProfitController extends HomebaseController
$this
->
display
();
$this
->
display
();
}
}
p
rotected
function
getI
nfo
()
p
ublic
function
i
nfo
()
{
{
$uid
=
I
(
"uid"
);
$uid
=
I
(
"uid"
);
$token
=
I
(
"token"
);
$token
=
I
(
"token"
);
...
@@ -89,12 +89,66 @@ class ProfitController extends HomebaseController
...
@@ -89,12 +89,66 @@ class ProfitController extends HomebaseController
}
}
}
}
$data
[
'certification'
]
=
$certification
;
$data
[
'certification'
]
=
$certification
;
return
$data
;
echo
json_encode
(
array
(
"ret"
=>
200
,
'data'
=>
$data
,
'msg'
=>
''
));
die
;
}
}
public
function
i
nfo
()
public
function
authI
nfo
()
{
{
$data
=
$this
->
getInfo
();
$uid
=
I
(
"uid"
);
$token
=
I
(
"token"
);
if
(
!
$uid
||
!
$token
||
checkToken
(
$uid
,
$token
)
==
700
){
echo
json_encode
(
array
(
"ret"
=>
0
,
'data'
=>
array
(),
'msg'
=>
'您的登陆状态失效,请重新登陆!'
));
exit
;
}
$data
=
[];
$identity
=
0
;
$auth
=
M
(
'users_auth'
)
->
where
(
"uid=
{
$uid
}
"
)
->
find
();
if
(
!
empty
(
$auth
))
{
$identity
=
3
;
if
(
$auth
[
'status'
]
==
0
)
{
$identity
=
2
;
}
if
(
$auth
[
'status'
]
==
1
)
{
$identity
=
1
;
}
}
$data
[
'identity'
]
=
$identity
;
$certification
=
0
;
$auth2
=
M
(
'users_info_auth'
)
->
where
(
"uid=
{
$uid
}
"
)
->
find
();
if
(
!
empty
(
$auth2
))
{
$certification
=
3
;
if
(
$auth2
[
'status'
]
==
0
)
{
$certification
=
2
;
}
if
(
$auth2
[
'status'
]
==
1
)
{
$certification
=
1
;
}
}
$data
[
'certification'
]
=
$certification
;
if
(
!
$auth2
)
{
$auth2
=
[
'account'
=>
''
,
'username'
=>
''
,
'front_view'
=>
''
,
'back_view'
=>
''
,
'handset_view'
=>
''
,
'name'
=>
''
,
'bank_name'
=>
''
,
'bank_card'
=>
''
,
'bank_province'
=>
''
,
'bank_city'
=>
''
,
'status'
=>
3
,
'reason'
=>
''
,
'addtime'
=>
''
,
'uptime'
=>
''
];
}
$data
=
array_merge
(
$data
,
$auth2
);
echo
json_encode
(
array
(
"ret"
=>
200
,
'data'
=>
$data
,
'msg'
=>
''
));
echo
json_encode
(
array
(
"ret"
=>
200
,
'data'
=>
$data
,
'msg'
=>
''
));
die
;
die
;
}
}
...
...
themes/simplebootx/Appapi/Profit/auth.html
View file @
2eba205a
...
@@ -113,8 +113,7 @@
...
@@ -113,8 +113,7 @@
created
:
function
()
{
created
:
function
()
{
//加载触发函数
//加载触发函数
let
_this
=
this
;
let
_this
=
this
;
let
url
=
_this
.
url
(
'/index.php?g=Appapi&m=Profit&a=info'
);
let
url
=
_this
.
url
(
'/index.php?g=Appapi&m=Profit&a=authInfo'
);
sessionStorage
.
removeItem
(
"source"
);
$
.
ajax
({
$
.
ajax
({
url
:
url
,
url
:
url
,
dataType
:
"json"
,
dataType
:
"json"
,
...
...
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