user
parent
31ca699f31
commit
a78dc2c412
|
|
@ -220,7 +220,7 @@ class OrderController extends AdminController
|
|||
{
|
||||
return function (Row $row) use ($id) {
|
||||
$row->column(5, function ($column) use ($id) {
|
||||
$builder = OrderModel::with(['user', 'userCoupon', 'tags'])->withCount('afterSales');
|
||||
$builder = OrderModel::with(['user', 'userCoupon', 'tags', 'store'])->withCount('afterSales');
|
||||
$column->row(Show::make($id, $builder, function (Show $show) {
|
||||
// $show->field('id');
|
||||
$show->row(function (Show\Row $show) {
|
||||
|
|
@ -287,7 +287,8 @@ class OrderController extends AdminController
|
|||
$show->row(function (Show\Row $show) use ($userCouponId) {
|
||||
$show->width(6)->field('sales_value');
|
||||
$show->field('completed_at', '完成时间');
|
||||
$show->width(12)->field('note')->width(10, 1);
|
||||
$show->field('note');
|
||||
$show->field('store.title', '店铺');
|
||||
$show->width(12)->field('remark')->width(10, 1);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -39,13 +39,7 @@ class UserToken extends Command
|
|||
public function handle()
|
||||
{
|
||||
$user = User::findOrFail($this->argument('id'));
|
||||
$tokens = $user->tokens;
|
||||
$token = '';
|
||||
if ($tokens->count() > 0) {
|
||||
$token = $tokens->first();
|
||||
} else {
|
||||
$token = $user->createToken('command');
|
||||
}
|
||||
$token = $user->createToken('command');
|
||||
$this->info($token->plainTextToken);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue