Skip to content

Commit

Permalink
review model 代码调整
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Dec 21, 2017
1 parent cf29763 commit d02df5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion config/services/Page.php
Expand Up @@ -31,7 +31,7 @@
'cssVersion' => 1,
/**
* @var string the root directory string the published asset files.
* 设置: js和css的发布路径
* 设置: js和css的发布路径,默认在web路径下的assets文件夹下,您可以放到其他的文件路径,然后用独立的jscss域名做指向
* 譬如设置为:'@appimage/assets',也可以将 @appimage 换成绝对路径
*/
'basePath' => '@webroot/assets',
Expand Down
3 changes: 0 additions & 3 deletions models/mongodb/product/Review.php
Expand Up @@ -74,9 +74,6 @@ public function attributes($origin = false)
'audit_user', // 审核账号
'audit_date', // 审核时间
];
if ($origin) { // 取原始的数据
return $origin;
}
if (is_array(self::$_customAttrs) && !empty(self::$_customAttrs)) {
$origin = array_merge($origin, self::$_customAttrs);
}
Expand Down

0 comments on commit d02df5c

Please sign in to comment.