|
@@ -15,7 +15,6 @@ class CashBackService extends CrudService {
|
|
|
async computedTotal({ customer }) {
|
|
|
assert(customer, '缺少用户信息');
|
|
|
const res = await this.model.find({ inviter: customer });
|
|
|
- console.log(res);
|
|
|
const total = res.reduce((p, n) => {
|
|
|
let money = n.money;
|
|
|
if (!(n.source === '0' || n.source === '1')) money = -money;
|