微调
This commit is contained in:
26
app/Admin/Renderable/Unionpay/InData.php
Normal file
26
app/Admin/Renderable/Unionpay/InData.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Admin\Renderable\Unionpay;
|
||||
|
||||
use App\Models\UnionpayLog;
|
||||
use App\Models\User;
|
||||
use Encore\Admin\Widgets\Table;
|
||||
use Illuminate\Contracts\Support\Renderable;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class InData implements Renderable
|
||||
{
|
||||
|
||||
public function render($key = null)
|
||||
{
|
||||
$log = UnionpayLog::find($key);
|
||||
$in_source = $log->in_source;
|
||||
|
||||
if (is_array($in_source) && count($in_source) > 1) {
|
||||
$table = new Table(['名称', '值'], $in_source, ['panel', ' panel-default']);
|
||||
|
||||
return $table->render();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user