5 changed files with 32 additions and 59 deletions
-
58app/Admin/Actions/ModifyOrderState.php
-
15app/Admin/Common/Auth.php
-
2app/Admin/Controllers/AuthController.php
-
11app/Admin/Controllers/ImsCjdcOrderMainController.php
-
5config/market_service.php
@ -1,58 +0,0 @@ |
|||
<?php |
|||
|
|||
namespace App\Admin\Actions; |
|||
|
|||
use Dcat\Admin\Actions\Action; |
|||
use Dcat\Admin\Actions\Response; |
|||
use Dcat\Admin\Traits\HasPermissions; |
|||
use Illuminate\Contracts\Auth\Authenticatable; |
|||
use Illuminate\Database\Eloquent\Model; |
|||
use Illuminate\Http\Request; |
|||
|
|||
class ModifyOrderState extends Action |
|||
{ |
|||
/** |
|||
* @return string |
|||
*/ |
|||
protected $title = '状态'; |
|||
|
|||
/** |
|||
* Handle the action request. |
|||
* |
|||
* @param Request $request |
|||
* |
|||
* @return Response |
|||
*/ |
|||
public function handle(Request $request) |
|||
{ |
|||
// dump($this->getKey());
|
|||
|
|||
return $this->response()->success('Processed successfully.')->redirect('/'); |
|||
} |
|||
|
|||
/** |
|||
* @return string|array|void |
|||
*/ |
|||
public function confirm() |
|||
{ |
|||
// return ['Confirm?', 'contents'];
|
|||
} |
|||
|
|||
/** |
|||
* @param Model|Authenticatable|HasPermissions|null $user |
|||
* |
|||
* @return bool |
|||
*/ |
|||
protected function authorize($user): bool |
|||
{ |
|||
return true; |
|||
} |
|||
|
|||
/** |
|||
* @return array |
|||
*/ |
|||
protected function parameters() |
|||
{ |
|||
return []; |
|||
} |
|||
} |
|||
@ -0,0 +1,5 @@ |
|||
<?php |
|||
return [ |
|||
'admin_user_id'=>[98,99], |
|||
'market_id'=>[98=>1,99=>2] |
|||
]; |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue