mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-04 13:00:05 +08:00
数据优化
This commit is contained in:
parent
712bda53f4
commit
59caa708ce
@ -179,7 +179,7 @@ class User extends Common
|
||||
$this->Is_Login();
|
||||
|
||||
// 订单总数
|
||||
$where = ['user_id'=>$this->user['id'], 'is_delete_time'=>0, 'user_is_delete_time'=>0];
|
||||
$where = ['user_id'=>$this->user['id'], 'is_delete_time'=>0, 'user_is_delete_time'=>0, 'user_type'=>'user'];
|
||||
$user_order_count = OrderService::OrderTotal($where);
|
||||
|
||||
// 商品收藏总数
|
||||
@ -191,7 +191,7 @@ class User extends Common
|
||||
$user_goods_browse_count = GoodsService::GoodsBrowseTotal($where);
|
||||
|
||||
// 未读消息总数
|
||||
$params = ['user'=>$this->user, 'is_more'=>1, 'is_read'=>0];
|
||||
$params = ['user'=>$this->user, 'is_more'=>1, 'is_read'=>0, 'user_type'=>'user'];
|
||||
$common_message_total = MessageService::UserMessageTotal($params);
|
||||
$common_message_total = ($common_message_total > 99) ? '99+' : $common_message_total;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user