'修改活动+测试接口'

This commit is contained in:
2020-08-20 17:01:01 +08:00
parent 41f53e00b6
commit 3dfd677017
3 changed files with 18 additions and 22 deletions

View File

@@ -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;
}

View File

@@ -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);
}
}

View File

@@ -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)