'修改活动+测试接口'
This commit is contained in:
@@ -66,6 +66,19 @@ class CouponController extends AdminController
|
||||
$grid->column('used_at', '核销时间');
|
||||
$grid->column('created_at', '创建时间');
|
||||
|
||||
$grid->disableExport(false);
|
||||
|
||||
$grid->export(function ($export) {
|
||||
$export->column('status', function ($value, $original) {
|
||||
return strip_tags($value);
|
||||
});
|
||||
$export->column('mobile', function ($value, $original) {
|
||||
return $value . "\t";
|
||||
});
|
||||
|
||||
$export->filename($this->title . date("YmdHis"));
|
||||
});
|
||||
|
||||
return $grid;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Channels;
|
||||
|
||||
use Illuminate\Notifications\Notification;
|
||||
|
||||
class VoiceChannel
|
||||
{
|
||||
/**
|
||||
* 发送指定的通知.
|
||||
* @param mixed $notifiable
|
||||
* @param \Illuminate\Notifications\Notification $notification
|
||||
* @return void
|
||||
*/
|
||||
public function send($notifiable, Notification $notification)
|
||||
{
|
||||
$message = $notification->toWeChat($notifiable);
|
||||
}
|
||||
}
|
||||
@@ -151,9 +151,11 @@ class TestController
|
||||
|
||||
$res = Coupon::Redemption($this->user, $redemptionCode, $total, $outletId);
|
||||
|
||||
dump($this->getElapsedTime());
|
||||
dump($this->getMemoryUsage());
|
||||
dd($res);
|
||||
if (is_string($res)) {
|
||||
return $this->error($res);
|
||||
}
|
||||
|
||||
return $this->success('核销成功');
|
||||
}
|
||||
|
||||
public function http($data, $url)
|
||||
|
||||
Reference in New Issue
Block a user