ceshi
This commit is contained in:
@@ -77,7 +77,7 @@ class CouponController extends Controller
|
||||
$response = function () use ($user, $request) {
|
||||
$handle = fopen('php://output', 'w');
|
||||
$titles = [
|
||||
'ID', '手机号', '门店名称', '优惠券券编号', '原始金额', '优惠的金额', '支付金额', '门店号', '状态', '核销时间',
|
||||
'ID', '手机号', '门店号', '门店名称', '优惠券券编号', '原始金额', '优惠的金额', '支付金额', '状态', '核销时间',
|
||||
];
|
||||
fputcsv($handle, $titles);
|
||||
|
||||
@@ -117,15 +117,15 @@ class CouponController extends Controller
|
||||
foreach ($coupons as $index => $coupon) {
|
||||
fputcsv($handle, [
|
||||
$coupon->id,
|
||||
$coupon->mobile,
|
||||
$coupon->outlet ? $coupon->outlet->nickname : 'Id:' . $coupon->outletId,
|
||||
$coupon->coupon_no,
|
||||
$coupon->mobile . "\t",
|
||||
$coupon->shop_no . "\t",
|
||||
$coupon->outlet ? $coupon->outlet->nickname : '',
|
||||
$coupon->coupon_no . "\t",
|
||||
$coupon->orig_amt / 100,
|
||||
$coupon->discount_amt / 100,
|
||||
$coupon->pay_amt / 100,
|
||||
// $coupon->effective_date_time,
|
||||
// $coupon->expire_date_time,
|
||||
$coupon->shop_no,
|
||||
$coupon->status_text,
|
||||
$coupon->updated_at,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user