setter
parent
f191f49024
commit
e7126a9991
|
@ -247,9 +247,9 @@ class User extends Base
|
|||
* 补充信息:
|
||||
* 文章收藏量、分享注册用户量(包含2级)
|
||||
*/
|
||||
$user->collects = $repo->countRecordByAction(AccountRecord::TYPE_CONTENT, AccountRecord::ACTION_COLLECT, $accountId);
|
||||
$user->share_users = $repo->shareAccountCount($accountId);
|
||||
$user->unread_messages = $repo->countUnReadMessage($accountId);
|
||||
// $user->collects = $repo->countRecordByAction(AccountRecord::TYPE_CONTENT, AccountRecord::ACTION_COLLECT, $accountId);
|
||||
// $user->share_users = $repo->shareAccountCount($accountId);
|
||||
// $user->unread_messages = $repo->countUnReadMessage($accountId);
|
||||
|
||||
$user = $user->toArray();
|
||||
$user = arrayNullToString($user);
|
||||
|
|
Loading…
Reference in New Issue