Browse Source

优化

develop
lemon 5 years ago
parent
commit
bd18767f31
  1. 4
      app/AdminAgent/Controllers/WithdrawalAlipayController.php
  2. 10
      app/AdminAgent/Controllers/WithdrawalBankController.php
  3. 4
      app/AdminGuide/Controllers/WithdrawalAlipayController.php
  4. 10
      app/AdminGuide/Controllers/WithdrawalBankController.php
  5. 4
      app/AdminSupplier/Controllers/WithdrawalAlipayController.php
  6. 10
      app/AdminSupplier/Controllers/WithdrawalBankController.php

4
app/AdminAgent/Controllers/WithdrawalAlipayController.php

@ -28,8 +28,8 @@ class WithdrawalAlipayController extends AdminController
return Form::make(new WithdrawalAlipay(), function (Form $form) { return Form::make(new WithdrawalAlipay(), function (Form $form) {
$form->display('id'); $form->display('id');
$form->decimal('price','提现金额')->required(); $form->decimal('price','提现金额')->required();
$form->text('account')->required();
$form->text('name')->required();
$form->text('account')->required()->maxLength(50);
$form->text('name')->required()->maxLength(50);
$form->image('qrcode')->required(); $form->image('qrcode')->required();
$form->hidden('withdrawal_id'); $form->hidden('withdrawal_id');

10
app/AdminAgent/Controllers/WithdrawalBankController.php

@ -26,11 +26,11 @@ class WithdrawalBankController extends AdminController
{ {
return Form::make(new WithdrawalBank(), function (Form $form) { return Form::make(new WithdrawalBank(), function (Form $form) {
$form->display('id'); $form->display('id');
$form->decimal('price','提现金额')->required();
$form->text('name')->required();
$form->text('card_number')->required();
$form->text('account_name')->required();
$form->text('branch')->required();
$form->decimal('price','提现金额')->required()->maxLength(50);
$form->text('name')->required()->maxLength(50);
$form->text('card_number')->required()->maxLength(50)->type('number');
$form->text('account_name')->required()->maxLength(50);
$form->text('branch')->required()->maxLength(100);
$form->hidden('withdrawal_id'); $form->hidden('withdrawal_id');
$form->saving(function (Form $form) { $form->saving(function (Form $form) {

4
app/AdminGuide/Controllers/WithdrawalAlipayController.php

@ -28,8 +28,8 @@ class WithdrawalAlipayController extends AdminController
return Form::make(new WithdrawalAlipay(), function (Form $form) { return Form::make(new WithdrawalAlipay(), function (Form $form) {
$form->display('id'); $form->display('id');
$form->decimal('price','提现金额')->required(); $form->decimal('price','提现金额')->required();
$form->text('account')->required();
$form->text('name')->required();
$form->text('account')->required()->maxLength(50);
$form->text('name')->required()->maxLength(50);
$form->image('qrcode')->required(); $form->image('qrcode')->required();
$form->hidden('withdrawal_id'); $form->hidden('withdrawal_id');

10
app/AdminGuide/Controllers/WithdrawalBankController.php

@ -26,11 +26,11 @@ class WithdrawalBankController extends AdminController
{ {
return Form::make(new WithdrawalBank(), function (Form $form) { return Form::make(new WithdrawalBank(), function (Form $form) {
$form->display('id'); $form->display('id');
$form->decimal('price','提现金额')->required();
$form->text('name')->required();
$form->text('card_number')->required();
$form->text('account_name')->required();
$form->text('branch')->required();
$form->decimal('price','提现金额')->required()->maxLength(50);
$form->text('name')->required()->maxLength(50);
$form->text('card_number')->required()->maxLength(50)->type('number');
$form->text('account_name')->required()->maxLength(50);
$form->text('branch')->required()->maxLength(100);
$form->hidden('withdrawal_id'); $form->hidden('withdrawal_id');
$form->saving(function (Form $form) { $form->saving(function (Form $form) {

4
app/AdminSupplier/Controllers/WithdrawalAlipayController.php

@ -28,8 +28,8 @@ class WithdrawalAlipayController extends AdminController
return Form::make(new WithdrawalAlipay(), function (Form $form) { return Form::make(new WithdrawalAlipay(), function (Form $form) {
$form->display('id'); $form->display('id');
$form->decimal('price','提现金额')->required(); $form->decimal('price','提现金额')->required();
$form->text('account')->required();
$form->text('name')->required();
$form->text('account')->required()->maxLength(50);
$form->text('name')->required()->maxLength(50);
$form->image('qrcode')->required(); $form->image('qrcode')->required();
$form->hidden('withdrawal_id'); $form->hidden('withdrawal_id');

10
app/AdminSupplier/Controllers/WithdrawalBankController.php

@ -26,11 +26,11 @@ class WithdrawalBankController extends AdminController
{ {
return Form::make(new WithdrawalBank(), function (Form $form) { return Form::make(new WithdrawalBank(), function (Form $form) {
$form->display('id'); $form->display('id');
$form->decimal('price','提现金额')->required();
$form->text('name')->required();
$form->text('card_number')->required();
$form->text('account_name')->required();
$form->text('branch')->required();
$form->decimal('price','提现金额')->required()->maxLength(50);
$form->text('name')->required()->maxLength(50);
$form->text('card_number')->required()->maxLength(50)->type('number');
$form->text('account_name')->required()->maxLength(50);
$form->text('branch')->required()->maxLength(100);
$form->hidden('withdrawal_id'); $form->hidden('withdrawal_id');
$form->saving(function (Form $form) { $form->saving(function (Form $form) {

Loading…
Cancel
Save