作者 何书鹏

待使用优惠券数量

... ... @@ -857,6 +857,7 @@ class Order extends Api
"nosend": 3, //待发货(数量)
"noget": 0, //待收货(数量)
"nocomment": 0, //待评价(数量)
"coupon": 0, //待使用优惠券(数量)
}
})
*/
... ... @@ -888,6 +889,10 @@ class Order extends Api
'receipt_status' => '20',
'order_status' => '10'
])->count();
$this->success('订单数量', compact('nopay','nosend','noget','nocomment'));
$coupon = UserCoupon::where([
'user_id' => $this->auth->id,
'status' => '0'
])->count();
$this->success('订单数量', compact('nopay','nosend','noget','nocomment','coupon'));
}
}
\ No newline at end of file
... ...