Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
84ceca4b
Commit
84ceca4b
authored
Oct 08, 2016
by
庄欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
攻略增加分享数
parent
e670afb3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
app/Article/Model/Art.php
+3
-1
app/Traits/Controller.php
+1
-1
composer.lock
+0
-0
No files found.
app/Article/Model/Art.php
View file @
84ceca4b
...
...
@@ -25,7 +25,9 @@ class Art extends Model
];
const
fields
=
[
"id"
,
"title"
,
"cover"
,
"look_count"
,
"like_count"
,
"create_time"
,
"is_hidden"
,
"comment_count"
,
"is_del"
"id"
,
"title"
,
"cover"
,
"look_count"
,
"like_count"
,
"create_time"
,
"is_hidden"
,
"comment_count"
,
"is_del"
,
"shared_count"
];
protected
$table
=
"myp_article"
;
...
...
app/Traits/Controller.php
View file @
84ceca4b
...
...
@@ -17,7 +17,7 @@ trait Controller
if
(
is_null
(
$where
)
||
empty
(
$where
))
{
return
[];
}
require
__DIR__
.
"/../Functions/underscore.php"
;
require
app_path
(
"/Functions/underscore.php"
)
;
$query_fields
=
null
;
isset
(
$this
->
query_fields
)
&&
$query_fields
=
$this
->
query_fields
;
is_string
(
$query_fields
)
&&
$query_fields
=
[
$query_fields
];
...
...
composer.lock
0 → 100755
View file @
84ceca4b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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