Skip to content

Commit d02df5c

Browse files
review model 代码调整
1 parent cf29763 commit d02df5c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

config/services/Page.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
'cssVersion' => 1,
3232
/**
3333
* @var string the root directory string the published asset files.
34-
* 设置: js和css的发布路径
34+
* 设置: js和css的发布路径,默认在web路径下的assets文件夹下,您可以放到其他的文件路径,然后用独立的jscss域名做指向
3535
* 譬如设置为:'@appimage/assets',也可以将 @appimage 换成绝对路径
3636
*/
3737
'basePath' => '@webroot/assets',

models/mongodb/product/Review.php

-3
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ public function attributes($origin = false)
7474
'audit_user', // 审核账号
7575
'audit_date', // 审核时间
7676
];
77-
if ($origin) { // 取原始的数据
78-
return $origin;
79-
}
8077
if (is_array(self::$_customAttrs) && !empty(self::$_customAttrs)) {
8178
$origin = array_merge($origin, self::$_customAttrs);
8279
}

0 commit comments

Comments
 (0)