微调
This commit is contained in:
@@ -49,6 +49,7 @@ class IndexController extends AdminController
|
|||||||
});
|
});
|
||||||
|
|
||||||
$grid->column('id', '#ID#');
|
$grid->column('id', '#ID#');
|
||||||
|
|
||||||
// $grid->column('path', '请求地址');
|
// $grid->column('path', '请求地址');
|
||||||
$grid->column('请求地址')->display(function ($title, $column) {
|
$grid->column('请求地址')->display(function ($title, $column) {
|
||||||
return '展开';
|
return '展开';
|
||||||
@@ -58,6 +59,8 @@ class IndexController extends AdminController
|
|||||||
|
|
||||||
return new Table($header, $array);
|
return new Table($header, $array);
|
||||||
});
|
});
|
||||||
|
$grid->column('created_at', '提交时间');
|
||||||
|
|
||||||
$grid->column('method', '模式');
|
$grid->column('method', '模式');
|
||||||
// $grid->column('in_source', '请求参数')
|
// $grid->column('in_source', '请求参数')
|
||||||
// ->display(function ($title, $column) {
|
// ->display(function ($title, $column) {
|
||||||
@@ -96,7 +99,6 @@ class IndexController extends AdminController
|
|||||||
|
|
||||||
return $out_source;
|
return $out_source;
|
||||||
});
|
});
|
||||||
$grid->column('created_at', '提交时间');
|
|
||||||
|
|
||||||
return $grid;
|
return $grid;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,9 +40,9 @@ class Log extends Model
|
|||||||
Schema::create($this->table, function (Blueprint $table) {
|
Schema::create($this->table, function (Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->increments('id');
|
||||||
$table->string('path', 255);
|
$table->string('path', 255);
|
||||||
$table->string('method', 15);
|
$table->string('method', 15)->index();
|
||||||
$table->text('in_source');
|
$table->text('in_source');
|
||||||
$table->string('type', 20);
|
$table->string('type', 20)->index();
|
||||||
$table->text('out_source')->nullable();
|
$table->text('out_source')->nullable();
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -8,8 +8,12 @@ return [
|
|||||||
],
|
],
|
||||||
//不进行sign校验
|
//不进行sign校验
|
||||||
'nosign' => [
|
'nosign' => [
|
||||||
'openid',
|
// '002025',//查询
|
||||||
'code',
|
// '002100',//核销
|
||||||
|
// '002101',//冲正
|
||||||
|
// '002102',//撤销
|
||||||
|
'openid',//获取openid 封装数据
|
||||||
|
'code',//微信测获取优惠券
|
||||||
],
|
],
|
||||||
//分配的渠道号
|
//分配的渠道号
|
||||||
'msg_sender' => '660134',
|
'msg_sender' => '660134',
|
||||||
@@ -37,6 +41,7 @@ return [
|
|||||||
'public' => storage_path('cert/unionpay/public_rsa.pem'),
|
'public' => storage_path('cert/unionpay/public_rsa.pem'),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
//接口类型
|
||||||
'type' => [
|
'type' => [
|
||||||
'002025' => '查询',
|
'002025' => '查询',
|
||||||
'002100' => '交易',
|
'002100' => '交易',
|
||||||
@@ -47,6 +52,7 @@ return [
|
|||||||
'012100' => '核销通知',
|
'012100' => '核销通知',
|
||||||
'code' => '生活请求发券',
|
'code' => '生活请求发券',
|
||||||
],
|
],
|
||||||
|
//日志类型对应
|
||||||
'log_type' => [
|
'log_type' => [
|
||||||
'002025' => 'query',
|
'002025' => 'query',
|
||||||
'002100' => 'freezecoupon',
|
'002100' => 'freezecoupon',
|
||||||
|
|||||||
@@ -3,12 +3,17 @@
|
|||||||
return [
|
return [
|
||||||
'coupon_model' => \App\Models\Coupon::class,
|
'coupon_model' => \App\Models\Coupon::class,
|
||||||
'rules' => [
|
'rules' => [
|
||||||
'ysd' => [
|
'ysd' => [
|
||||||
// 'pattern' => '/^YSD\d{12}/',
|
// 'pattern' => '/^YSD\d{12}/',
|
||||||
'pattern' => '/^YSD/',
|
'pattern' => '/^YSD/',
|
||||||
'model' => \XuanChen\Coupon\Action\YsdAction::class,
|
'model' => \XuanChen\Coupon\Action\YsdAction::class,
|
||||||
],
|
],
|
||||||
'pingan' => [
|
'unionpay' => [
|
||||||
|
// 'pattern' => '/^YSD\d{12}/',
|
||||||
|
'pattern' => '/^66406/',
|
||||||
|
'model' => \XuanChen\Coupon\Action\YsdAction::class,
|
||||||
|
],
|
||||||
|
'pingan' => [
|
||||||
'pattern' => '/^\d{12}$/',
|
'pattern' => '/^\d{12}$/',
|
||||||
'model' => \XuanChen\Coupon\Action\PinganAction::class,
|
'model' => \XuanChen\Coupon\Action\PinganAction::class,
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user