Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhupu
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
zhupu
Commits
13888517
Commit
13888517
authored
Sep 12, 2023
by
sugar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://rungit.jxdsy.cn:10000/sugar/zhupu
into dev
parents
cb9f0837
2ebe58a1
Pipeline
#704
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
3 deletions
+40
-3
application/api/controller/FamilyTree.php
application/api/controller/FamilyTree.php
+40
-3
No files found.
application/api/controller/FamilyTree.php
View file @
13888517
...
...
@@ -449,7 +449,7 @@ class FamilyTree extends Api
&&
(
$people
[
'user_id'
]
==
$this
->
auth
->
id
||
(
$familyTree
&&
$familyTree
[
'create_user_id'
]
==
$this
->
auth
->
id
)
||
(
$familyTreeMate
&&
$familyTreeMate
[
'create_user_id'
]
==
$this
->
auth
->
id
))){
$this
->
success
(
"该账户无权限!"
);
$this
->
error
(
"该账户无权限!"
);
}
...
...
@@ -482,7 +482,7 @@ class FamilyTree extends Api
if
(
!
in_array
(
$this
->
auth
->
id
,
explode
(
","
,
$family
[
'rw_user_id'
]))){
$this
->
success
(
"该账户无权限!"
);
$this
->
error
(
"该账户无权限!"
);
}
...
...
@@ -533,7 +533,7 @@ class FamilyTree extends Api
if
(
!
in_array
(
$this
->
auth
->
id
,
explode
(
","
,
$family
[
'rw_user_id'
]))){
$this
->
success
(
"该账户无权限!"
);
$this
->
error
(
"该账户无权限!"
);
}
...
...
@@ -623,4 +623,41 @@ class FamilyTree extends Api
$this
->
success
(
"加入成功,去支付"
,[
'info'
=>
$pay_info
->
toArray
()]);
}
/**
* 审核列表
*/
public
function
auditPeopleList
(){
$family_id
=
$this
->
request
->
param
(
"family_id"
);
//族谱id
$FamilyTree
=
FamilyModel
::
myFamilyTreeList
([
"ft.family_id"
=>
$family_id
,
'audit'
=>
0
]);
$this
->
success
(
""
,
$FamilyTree
);
}
public
function
auditPeople
(){
$family_id
=
$this
->
request
->
param
(
"family_id"
);
//族谱id
$people_id
=
$this
->
request
->
param
(
"people_id"
);
$audit
=
$this
->
request
->
param
(
"audit"
,
1
);
$family
=
FamilyModel
::
dataInfo
([
'id'
=>
$family_id
]);
if
(
!
in_array
(
$this
->
auth
->
id
,
explode
(
","
,
$family
[
'rw_user_id'
]))){
$this
->
error
(
"该账户无权限!"
);
}
$status
=
$audit
==
1
?
1
:
0
;
FamilyPeopleModel
::
dataUpdate
([
'id'
=>
$people_id
],[
'status'
=>
$status
,
'audit'
=>
$status
]);
$this
->
success
(
"审核成功"
);
}
}
\ No newline at end of file
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