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
c6bc9586
Commit
c6bc9586
authored
May 07, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
25aab930
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
0 deletions
+40
-0
api/Appapi/Api/User.php
+26
-0
api/Appapi/Domain/User.php
+9
-0
api/Appapi/Model/User.php
+5
-0
No files found.
api/Appapi/Api/User.php
View file @
c6bc9586
...
@@ -98,6 +98,12 @@ class Api_User extends PhalApi_Api {
...
@@ -98,6 +98,12 @@ class Api_User extends PhalApi_Api {
'source'
=>
array
(
'name'
=>
'source'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'类型,1主播,2邀请,3家族'
),
'source'
=>
array
(
'name'
=>
'source'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'类型,1主播,2邀请,3家族'
),
),
),
'getRechangeLog'
=>
array
(
'uid'
=>
array
(
'name'
=>
'uid'
,
'type'
=>
'int'
,
'min'
=>
1
,
'require'
=>
true
,
'desc'
=>
'用户ID'
),
'token'
=>
array
(
'name'
=>
'token'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'用户token'
),
'source'
=>
array
(
'name'
=>
'source'
,
'type'
=>
'int'
,
'require'
=>
true
,
'desc'
=>
'类型,1主播,2邀请,3家族'
),
),
'setCash'
=>
array
(
'setCash'
=>
array
(
'uid'
=>
array
(
'name'
=>
'uid'
,
'type'
=>
'int'
,
'min'
=>
1
,
'require'
=>
true
,
'desc'
=>
'用户ID'
),
'uid'
=>
array
(
'name'
=>
'uid'
,
'type'
=>
'int'
,
'min'
=>
1
,
'require'
=>
true
,
'desc'
=>
'用户ID'
),
'token'
=>
array
(
'name'
=>
'token'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'用户token'
),
'token'
=>
array
(
'name'
=>
'token'
,
'type'
=>
'string'
,
'require'
=>
true
,
'desc'
=>
'用户token'
),
...
@@ -1072,6 +1078,26 @@ class Api_User extends PhalApi_Api {
...
@@ -1072,6 +1078,26 @@ class Api_User extends PhalApi_Api {
return
$rs
;
return
$rs
;
}
}
public
function
getRechangeLog
()
{
$rs
=
array
(
'code'
=>
0
,
'msg'
=>
''
,
'info'
=>
array
());
$uid
=
checkNull
(
$this
->
uid
);
$token
=
checkNull
(
$this
->
token
);
$checkToken
=
checkToken
(
$uid
,
$token
);
if
(
$checkToken
==
700
){
$rs
[
'code'
]
=
$checkToken
;
$rs
[
'msg'
]
=
'您的登陆状态失效,请重新登陆!'
;
return
$rs
;
}
$domain
=
new
Domain_User
();
$result
=
$domain
->
getRechangeLog
(
$uid
,
$this
->
source
);
$rs
[
'info'
][
0
]
=
$result
;
return
$rs
;
}
public
function
attentList
()
public
function
attentList
()
{
{
$rs
=
array
(
'code'
=>
0
,
'msg'
=>
''
,
'info'
=>
array
());
$rs
=
array
(
'code'
=>
0
,
'msg'
=>
''
,
'info'
=>
array
());
...
...
api/Appapi/Domain/User.php
View file @
c6bc9586
...
@@ -128,6 +128,15 @@ class Domain_User {
...
@@ -128,6 +128,15 @@ class Domain_User {
return
$rs
;
return
$rs
;
}
}
public
function
getRechangeLog
(
$uid
,
$source
)
{
$rs
=
array
();
$model
=
new
Model_User
();
$rs
=
$model
->
getRechangeLog
(
$uid
,
$source
);
return
$rs
;
}
public
function
setAttent
(
$uid
,
$touid
)
{
public
function
setAttent
(
$uid
,
$touid
)
{
$rs
=
array
();
$rs
=
array
();
...
...
api/Appapi/Model/User.php
View file @
c6bc9586
...
@@ -300,6 +300,11 @@ class Model_User extends PhalApi_Model_NotORM
...
@@ -300,6 +300,11 @@ class Model_User extends PhalApi_Model_NotORM
return
$rs
?
$rs
:
[];
return
$rs
?
$rs
:
[];
}
}
public
function
getRechangeLog
(
$uid
,
$source
)
{
$rs
=
DI
()
->
notorm
->
users_recharge
->
select
(
'*'
)
->
where
(
"uid =
{
$uid
}
and source =
{
$source
}
"
)
->
order
(
'addtime desc'
)
->
fetchAll
();
return
$rs
?
$rs
:
[];
}
/**
/**
* 礼物明细
* 礼物明细
*
*
...
...
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