Commit 84ceca4b by 庄欣

攻略增加分享数

parent e670afb3
......@@ -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";
......
......@@ -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];
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment