Browse Source

优化

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

10
app/AdminAgent/Controllers/WithdrawalAlipayController.php

@ -26,12 +26,12 @@ class WithdrawalAlipayController extends AdminController
protected function form()
{
return Form::make(new WithdrawalAlipay(), function (Form $form) {
$form->display('id');
$form->display('id');
$form->decimal('price','提现金额')->required();
$form->text('account')->required();
$form->text('name')->required();
$form->image('qrcode')->required();
$form->hidden('withdrawal_id');
$form->text('account')->required()->maxLength(50);
$form->text('name')->required()->maxLength(50);
$form->image('qrcode')->required();
$form->hidden('withdrawal_id');
$form->saving(function (Form $form) {
$user = Agent::query()->where('id', Admin::user()->id)->lockForUpdate()->first();

10
app/AdminAgent/Controllers/WithdrawalBankController.php

@ -26,11 +26,11 @@ class WithdrawalBankController extends AdminController
{
return Form::make(new WithdrawalBank(), function (Form $form) {
$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->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) {
$form->display('id');
$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->hidden('withdrawal_id');

14
app/AdminGuide/Controllers/WithdrawalBankController.php

@ -25,13 +25,13 @@ class WithdrawalBankController extends AdminController
protected function form()
{
return Form::make(new WithdrawalBank(), function (Form $form) {
$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->hidden('withdrawal_id');
$form->display('id');
$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->saving(function (Form $form) {
$user = Agent::query()->where('id', Admin::user()->id)->lockForUpdate()->first();

10
app/AdminSupplier/Controllers/WithdrawalAlipayController.php

@ -26,12 +26,12 @@ class WithdrawalAlipayController extends AdminController
protected function form()
{
return Form::make(new WithdrawalAlipay(), function (Form $form) {
$form->display('id');
$form->display('id');
$form->decimal('price','提现金额')->required();
$form->text('account')->required();
$form->text('name')->required();
$form->image('qrcode')->required();
$form->hidden('withdrawal_id');
$form->text('account')->required()->maxLength(50);
$form->text('name')->required()->maxLength(50);
$form->image('qrcode')->required();
$form->hidden('withdrawal_id');
$form->saving(function (Form $form) {
$user = Agent::query()->where('id', Admin::user()->id)->lockForUpdate()->first();

14
app/AdminSupplier/Controllers/WithdrawalBankController.php

@ -25,13 +25,13 @@ class WithdrawalBankController extends AdminController
protected function form()
{
return Form::make(new WithdrawalBank(), function (Form $form) {
$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->hidden('withdrawal_id');
$form->display('id');
$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->saving(function (Form $form) {
$user = Agent::query()->where('id', Admin::user()->id)->lockForUpdate()->first();

Loading…
Cancel
Save