This commit is contained in:
2020-11-17 22:52:37 +08:00
parent a9ececba5e
commit 56ac22e87b
3 changed files with 11 additions and 2 deletions

View File

@ -47,6 +47,15 @@ class UserLevel extends Base
];
}
public function stats2()
{
$userId = get_my_id();
$goodsType = 3;
return [
'zgAmounts'=>Db::name('orders')->where(compact('userId','goodsType'))->sum('helpGetCount'),
];
}
/**
* TreeList
* @throws \think\db\exception\DataNotFoundException